Lines Matching refs:item

200 	Item_t		item[ITEMS];  member
210 lookup(register const Item_t* item, const char* name, int size) in lookup() argument
216 for (i = 0; item[i].data; i++) in lookup()
217 if (c == item[i].data[0] && size == item[i].size && !strncmp(name, item[i].data, size)) in lookup()
296 expand(Notice_t* notice, register Buffer_t* b, const Item_t* item) in expand() argument
308 if (t = item->data) in expand()
310 q = item->quote; in expand()
311 e = t + item->size; in expand()
332 if ((c = lookup(key, x, t - x - 1)) >= 0 && (x = notice->item[c].data)) in expand()
334 z = x + notice->item[c].size; in expand()
387 else if (!(t = notice->item[SOURCE].data)) in copyright()
392 if ((x = notice->item[START].data) && strncmp(t, x, 4) < 0) in copyright()
394 if ((x = notice->item[SINCE].data) && strncmp(x, t, 4) < 0) in copyright()
396 expand(notice, b, &notice->item[SINCE]); in copyright()
400 if (notice->item[PARENT].data) in copyright()
403 expand(notice, b, &notice->item[PARENT]); in copyright()
405 if (notice->item[CORPORATION].data) in copyright()
408 expand(notice, b, &notice->item[CORPORATION]); in copyright()
409 if (notice->item[INCORPORATION].data) in copyright()
412 expand(notice, b, &notice->item[INCORPORATION]); in copyright()
415 else if (notice->item[COMPANY].data) in copyright()
418 expand(notice, b, &notice->item[COMPANY]); in copyright()
520 Item_t item; in astlicense() local
553 notice.item[i].data = 0; in astlicense()
554 notice.item[STYLE] = notice.item[CLASS] = lic[notice.type]; in astlicense()
555 notice.item[STYLE].quote = notice.item[CLASS].quote = 0; in astlicense()
700 if (notice.item[i].size) in astlicense()
705 if (h >= notice.item[i].size) in astlicense()
710 else if (notice.item[i].data[h] == ' ' || notice.item[i].data[h] == '\t') in astlicense()
714 expand(&notice, &buf, &notice.item[i]); in astlicense()
724 item.data = v; in astlicense()
725 item.size = s - v; in astlicense()
726 item.quote = 0; in astlicense()
727 expand(&notice, &buf, &item); in astlicense()
730 expand(&notice, &buf, &notice.item[h]); in astlicense()
759 notice.item[CLASS].data = lic[lic[c].quote].data; in astlicense()
760 notice.item[CLASS].size = lic[lic[c].quote].size; in astlicense()
761 if (notice.item[STYLE].data != lic[NONE].data) in astlicense()
767 notice.item[h].data = (notice.item[h].size = s - v) ? v : (char*)0; in astlicense()
768 notice.item[h].quote = quote; in astlicense()
801 if (notice.type == INLINE && (!notice.verbose || !notice.item[NOTICE].data)) in astlicense()
809 if (notice.item[PACKAGE].data) in astlicense()
812 expand(&notice, &tmp, &notice.item[PACKAGE]); in astlicense()
825 copy(&tmp, notice.item[PACKAGE].data ? "and" : "This software", -1); in astlicense()
832 if (notice.item[VERSION].data) in astlicense()
835 expand(&notice, &tmp, &notice.item[VERSION]); in astlicense()
838 if (notice.item[CORPORATION].data || notice.item[COMPANY].data) in astlicense()
841 if (notice.item[PARENT].data) in astlicense()
843 expand(&notice, &tmp, &notice.item[PARENT]); in astlicense()
846 if (notice.item[CORPORATION].data) in astlicense()
848 expand(&notice, &tmp, &notice.item[CORPORATION]); in astlicense()
849 if (notice.item[INCORPORATION].data) in astlicense()
852 expand(&notice, &tmp, &notice.item[INCORPORATION]); in astlicense()
855 else if (notice.item[COMPANY].data) in astlicense()
856 expand(&notice, &tmp, &notice.item[COMPANY]); in astlicense()
861 if (notice.item[URL].data) in astlicense()
863 expand(&notice, &tmp, &notice.item[URL]); in astlicense()
865 if (notice.item[URLMD5].data) in astlicense()
868 expand(&notice, &tmp, &notice.item[URLMD5]); in astlicense()
881 copy(&tmp, notice.item[PACKAGE].data ? "and it" : "This software", -1); in astlicense()
884 if (notice.item[i = CORPORATION].data) in astlicense()
886 if (notice.item[PARENT].data) in astlicense()
888 expand(&notice, &tmp, &notice.item[i = PARENT]); in astlicense()
891 expand(&notice, &tmp, &notice.item[CORPORATION]); in astlicense()
894 else if (notice.item[i = COMPANY].data) in astlicense()
896 if (notice.item[PARENT].data) in astlicense()
898 expand(&notice, &tmp, &notice.item[i = PARENT]); in astlicense()
901 expand(&notice, &tmp, &notice.item[COMPANY]); in astlicense()
906 if (notice.item[URL].data) in astlicense()
911 expand(&notice, &tmp, &notice.item[i]); in astlicense()
915 expand(&notice, &tmp, &notice.item[URL]); in astlicense()
917 if (notice.item[URLMD5].data) in astlicense()
920 expand(&notice, &tmp, &notice.item[URLMD5]); in astlicense()
930 expand(&notice, &tmp, &notice.item[i]); in astlicense()
978 …if (notice.item[i = PARENT].data || notice.item[i = CORPORATION].data || notice.item[i = COMPANY].… in astlicense()
979 expand(&notice, &tmp, &notice.item[i]); in astlicense()
1058 …if (notice.item[i = PARENT].data || notice.item[i = CORPORATION].data || notice.item[i = COMPANY].… in astlicense()
1060 expand(&notice, &tmp, &notice.item[i]); in astlicense()
1068 if (notice.item[URL].data) in astlicense()
1074 if (notice.item[PARENT].data) in astlicense()
1076 expand(&notice, &tmp, &notice.item[PARENT]); in astlicense()
1079 if (notice.item[CORPORATION].data) in astlicense()
1081 expand(&notice, &tmp, &notice.item[CORPORATION]); in astlicense()
1084 else if (notice.item[COMPANY].data) in astlicense()
1086 expand(&notice, &tmp, &notice.item[COMPANY]); in astlicense()
1096 if (notice.item[i = PARENT].data || notice.item[i = CORPORATION].data) in astlicense()
1097 expand(&notice, &tmp, &notice.item[i]); in astlicense()
1098 if (notice.item[COMPANY].data) in astlicense()
1102 expand(&notice, &tmp, &notice.item[COMPANY]); in astlicense()
1121 if (notice.type >= PROPRIETARY && !notice.item[URL].data) in astlicense()
1126 if (notice.item[URL].data) in astlicense()
1129 if (notice.item[CORPORATION].data || notice.item[COMPANY].data) in astlicense()
1132 … ((notice.item[PARENT].size + (notice.item[CORPORATION].data ? (notice.item[CORPORATION].size + no… in astlicense()
1136 if (notice.item[PARENT].data) in astlicense()
1138 expand(&notice, &tmp, &notice.item[PARENT]); in astlicense()
1141 if (notice.item[CORPORATION].data) in astlicense()
1143 expand(&notice, &tmp, &notice.item[CORPORATION]); in astlicense()
1144 if (notice.item[INCORPORATION].data) in astlicense()
1147 expand(&notice, &tmp, &notice.item[INCORPORATION]); in astlicense()
1150 else if (notice.item[COMPANY].data) in astlicense()
1151 expand(&notice, &tmp, &notice.item[COMPANY]); in astlicense()
1155 expand(&notice, &tmp, &notice.item[URL]); in astlicense()
1157 if (notice.item[URLMD5].data) in astlicense()
1160 expand(&notice, &tmp, &notice.item[URLMD5]); in astlicense()
1173 if (v = notice.item[NOTICE].data) in astlicense()
1175 x = v + notice.item[NOTICE].size; in astlicense()
1178 item.quote = notice.item[NOTICE].quote; in astlicense()
1181 for (item.data = v; v < x && *v != '\n'; v++); in astlicense()
1182 if ((item.size = v - item.data) && *item.data == '\t') in astlicense()
1184 item.data++; in astlicense()
1185 item.size--; in astlicense()
1190 expand(&notice, &tmp, &item); in astlicense()
1193 if (item.size) in astlicense()
1196 if (notice.item[ORGANIZATION].data) in astlicense()
1198 expand(&notice, &tmp, &notice.item[ORGANIZATION]); in astlicense()
1200 if (notice.item[i = PARENT].data || notice.item[i = CORPORATION].data) in astlicense()
1201 expand(&notice, &tmp, &notice.item[i]); in astlicense()
1202 if (notice.item[COMPANY].data) in astlicense()
1206 expand(&notice, &tmp, &notice.item[COMPANY]); in astlicense()
1210 if (notice.item[LOCATION].data) in astlicense()
1212 expand(&notice, &tmp, &notice.item[LOCATION]); in astlicense()
1218 if (v = notice.item[AUTHOR].data) in astlicense()
1220 x = v + notice.item[AUTHOR].size; in astlicense()
1231 item.data = v; in astlicense()
1233 item.size = v - item.data; in astlicense()
1234 item.quote = notice.item[AUTHOR].quote; in astlicense()
1238 …if (q || item.size == notice.id[i].name.size && !strncmp(item.data, notice.id[i].name.data, item.s… in astlicense()
1268 expand(&notice, &buf, &item); in astlicense()
1279 expand(&notice, &tmp, &item); in astlicense()
1292 if (notice.item[URL].data) in astlicense()
1295 expand(&notice, &buf, &notice.item[URL]); in astlicense()