usr.bin/xlint/lint2/chk.c
100
check_defined_not_used(hte);
usr.bin/xlint/lint2/chk.c
1001
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
1004
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
1007
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
1011
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
102
check_declared_not_used_or_defined(hte);
usr.bin/xlint/lint2/chk.c
1020
bad_format_string(const hte_t *hte, const fcall_t *call)
usr.bin/xlint/lint2/chk.c
1024
msg(13, hte->h_name, mkpos(&call->f_pos));
usr.bin/xlint/lint2/chk.c
1028
inconsistent_arguments(const hte_t *hte, const fcall_t *call, int n)
usr.bin/xlint/lint2/chk.c
1032
msg(14, hte->h_name, mkpos(&call->f_pos), n);
usr.bin/xlint/lint2/chk.c
1036
too_few_arguments(const hte_t *hte, const fcall_t *call)
usr.bin/xlint/lint2/chk.c
104
check_multiple_definitions(hte);
usr.bin/xlint/lint2/chk.c
1040
msg(15, hte->h_name, mkpos(&call->f_pos));
usr.bin/xlint/lint2/chk.c
1044
too_many_arguments(const hte_t *hte, const fcall_t *call)
usr.bin/xlint/lint2/chk.c
1048
msg(16, hte->h_name, mkpos(&call->f_pos));
usr.bin/xlint/lint2/chk.c
1070
check_return_values(const hte_t *hte, const sym_t *def)
usr.bin/xlint/lint2/chk.c
1079
if (hte->h_calls == NULL)
usr.bin/xlint/lint2/chk.c
108
for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
usr.bin/xlint/lint2/chk.c
1091
if (hflag && bsearch(hte->h_name, ignorelist,
usr.bin/xlint/lint2/chk.c
1099
for (call = hte->h_calls; call != NULL; call = call->f_next) {
usr.bin/xlint/lint2/chk.c
1105
msg(8, hte->h_name);
usr.bin/xlint/lint2/chk.c
1108
msg(9, hte->h_name);
usr.bin/xlint/lint2/chk.c
1112
for (call = hte->h_calls; call != NULL; call = call->f_next) {
usr.bin/xlint/lint2/chk.c
1115
msg(10, hte->h_name, mkpos(&call->f_pos));
usr.bin/xlint/lint2/chk.c
1124
check_argument_declarations(const hte_t *hte,
usr.bin/xlint/lint2/chk.c
1149
for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
usr.bin/xlint/lint2/chk.c
1162
msg(11, hte->h_name, n + 1,
usr.bin/xlint/lint2/chk.c
1181
msg(12, hte->h_name,
usr.bin/xlint/lint2/chk.c
124
chkvtui(hte, def, decl);
usr.bin/xlint/lint2/chk.c
126
chkvtdi(hte, def, decl);
usr.bin/xlint/lint2/chk.c
128
chkfaui(hte, def, decl);
usr.bin/xlint/lint2/chk.c
130
check_return_values(hte, def);
usr.bin/xlint/lint2/chk.c
132
check_argument_declarations(hte, def, decl);
usr.bin/xlint/lint2/chk.c
139
check_used_not_defined(const hte_t *hte)
usr.bin/xlint/lint2/chk.c
144
if (!hte->h_used || hte->h_def)
usr.bin/xlint/lint2/chk.c
147
if ((fcall = hte->h_calls) != NULL) {
usr.bin/xlint/lint2/chk.c
149
msg(0, hte->h_name, mkpos(&fcall->f_pos));
usr.bin/xlint/lint2/chk.c
150
} else if ((usym = hte->h_usyms) != NULL) {
usr.bin/xlint/lint2/chk.c
152
msg(0, hte->h_name, mkpos(&usym->u_pos));
usr.bin/xlint/lint2/chk.c
160
check_defined_not_used(const hte_t *hte)
usr.bin/xlint/lint2/chk.c
164
if (!hte->h_def || hte->h_used)
usr.bin/xlint/lint2/chk.c
167
for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
usr.bin/xlint/lint2/chk.c
170
msg(1, hte->h_name, mkpos(&sym->s_pos));
usr.bin/xlint/lint2/chk.c
181
check_declared_not_used_or_defined(const hte_t *hte)
usr.bin/xlint/lint2/chk.c
185
if (hte->h_syms == NULL || hte->h_used || hte->h_def)
usr.bin/xlint/lint2/chk.c
188
sym = hte->h_syms;
usr.bin/xlint/lint2/chk.c
195
msg(2, hte->h_name, mkpos(&sym->s_pos));
usr.bin/xlint/lint2/chk.c
203
check_multiple_definitions(const hte_t *hte)
usr.bin/xlint/lint2/chk.c
207
if (!hte->h_def)
usr.bin/xlint/lint2/chk.c
211
for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
usr.bin/xlint/lint2/chk.c
225
msg(3, hte->h_name, mkpos(&def1->s_pos), mkpos(&sym->s_pos));
usr.bin/xlint/lint2/chk.c
239
chkvtui(const hte_t *hte, const sym_t *def, const sym_t *decl)
usr.bin/xlint/lint2/chk.c
246
if (hte->h_calls == NULL)
usr.bin/xlint/lint2/chk.c
255
for (call = hte->h_calls; call != NULL; call = call->f_next) {
usr.bin/xlint/lint2/chk.c
278
msg(17, hte->h_name,
usr.bin/xlint/lint2/chk.c
285
msg(4, hte->h_name,
usr.bin/xlint/lint2/chk.c
297
chkvtdi(const hte_t *hte, const sym_t *def, const sym_t *decl)
usr.bin/xlint/lint2/chk.c
305
for (sym_t *sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
usr.bin/xlint/lint2/chk.c
317
msg(5, hte->h_name,
usr.bin/xlint/lint2/chk.c
339
chkfaui(const hte_t *hte, const sym_t *def, const sym_t *decl)
usr.bin/xlint/lint2/chk.c
347
if ((calls = hte->h_calls) == NULL)
usr.bin/xlint/lint2/chk.c
386
chkau(hte, n, def, decl, pos1p, call1, call,
usr.bin/xlint/lint2/chk.c
408
msg(7, hte->h_name, total_args(n, ap1), mkpos(pos1p),
usr.bin/xlint/lint2/chk.c
426
printflike(hte, call, n, ai->a_fstrg, ap2);
usr.bin/xlint/lint2/chk.c
428
scanflike(hte, call, n, ai->a_fstrg, ap2);
usr.bin/xlint/lint2/chk.c
447
chkau(const hte_t *hte,
usr.bin/xlint/lint2/chk.c
591
msg(6, hte->h_name, n, type_name(arg1), mkpos(pos1p),
usr.bin/xlint/lint2/chk.c
600
printflike(const hte_t *hte, const fcall_t *call,
usr.bin/xlint/lint2/chk.c
615
too_many_arguments(hte, call);
usr.bin/xlint/lint2/chk.c
619
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
662
too_few_arguments(hte, call);
usr.bin/xlint/lint2/chk.c
667
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
681
too_few_arguments(hte, call);
usr.bin/xlint/lint2/chk.c
686
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
688
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
708
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
715
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
720
too_few_arguments(hte, call);
usr.bin/xlint/lint2/chk.c
729
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
735
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
738
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
745
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
749
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
753
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
756
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
760
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
763
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
767
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
779
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
781
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
784
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
786
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
789
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
792
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
796
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
798
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
801
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
803
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
806
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
809
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
812
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
815
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
828
scanflike(const hte_t *hte, const fcall_t *call,
usr.bin/xlint/lint2/chk.c
84
hte_t *hte;
usr.bin/xlint/lint2/chk.c
843
too_many_arguments(hte, call);
usr.bin/xlint/lint2/chk.c
847
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
86
if ((hte = htab_search("main", false)) != NULL)
usr.bin/xlint/lint2/chk.c
87
hte->h_used = true;
usr.bin/xlint/lint2/chk.c
879
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
886
too_few_arguments(hte, call);
usr.bin/xlint/lint2/chk.c
896
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
902
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
904
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
906
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
908
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
913
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
926
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
931
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
94
check_name(const hte_t *hte)
usr.bin/xlint/lint2/chk.c
940
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
949
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
955
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
964
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
973
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
979
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
982
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
986
bad_format_string(hte, call);
usr.bin/xlint/lint2/chk.c
99
check_used_not_defined(hte);
usr.bin/xlint/lint2/chk.c
993
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/chk.c
996
inconsistent_arguments(hte, call, n);
usr.bin/xlint/lint2/emit2.c
104
outdef(const hte_t *hte, const sym_t *sym)
usr.bin/xlint/lint2/emit2.c
135
outname(hte->h_name);
usr.bin/xlint/lint2/emit2.c
142
dumpname(const hte_t *hte)
usr.bin/xlint/lint2/emit2.c
147
if (hte->h_static || !hte->h_def)
usr.bin/xlint/lint2/emit2.c
156
for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
usr.bin/xlint/lint2/emit2.c
165
errx(1, "internal error: dumpname %s", hte->h_name);
usr.bin/xlint/lint2/emit2.c
167
outdef(hte, def);
usr.bin/xlint/lint2/hash.c
100
hte->h_def = false;
usr.bin/xlint/lint2/hash.c
101
hte->h_static = false;
usr.bin/xlint/lint2/hash.c
102
hte->h_syms = NULL;
usr.bin/xlint/lint2/hash.c
103
hte->h_lsym = &hte->h_syms;
usr.bin/xlint/lint2/hash.c
104
hte->h_calls = NULL;
usr.bin/xlint/lint2/hash.c
105
hte->h_lcall = &hte->h_calls;
usr.bin/xlint/lint2/hash.c
106
hte->h_usyms = NULL;
usr.bin/xlint/lint2/hash.c
107
hte->h_lusym = &hte->h_usyms;
usr.bin/xlint/lint2/hash.c
108
hte->h_link = table[h];
usr.bin/xlint/lint2/hash.c
109
hte->h_hte = NULL;
usr.bin/xlint/lint2/hash.c
110
table[h] = hte;
usr.bin/xlint/lint2/hash.c
112
return hte;
usr.bin/xlint/lint2/hash.c
154
hte_t *hte;
usr.bin/xlint/lint2/hash.c
158
for (hte = table[i]; hte != NULL; hte = hte->h_link)
usr.bin/xlint/lint2/hash.c
159
action(hte);
usr.bin/xlint/lint2/hash.c
167
hte_t *hte;
usr.bin/xlint/lint2/hash.c
173
for (hte = table[i]; hte != NULL; hte = hte->h_link)
usr.bin/xlint/lint2/hash.c
174
hte_list_add(&sorted, hte);
usr.bin/xlint/lint2/hash.c
191
hte_t *hte, *nexthte;
usr.bin/xlint/lint2/hash.c
194
for (hte = table[i]; hte != NULL; hte = nexthte) {
usr.bin/xlint/lint2/hash.c
195
free(__UNCONST(hte->h_name));
usr.bin/xlint/lint2/hash.c
196
nexthte = hte->h_link;
usr.bin/xlint/lint2/hash.c
197
free(hte);
usr.bin/xlint/lint2/hash.c
82
hte_t *hte;
usr.bin/xlint/lint2/hash.c
88
for (hte = table[h]; hte != NULL; hte = hte->h_link) {
usr.bin/xlint/lint2/hash.c
89
if (strcmp(hte->h_name, s) == 0)
usr.bin/xlint/lint2/hash.c
93
if (hte != NULL || !mknew)
usr.bin/xlint/lint2/hash.c
94
return hte;
usr.bin/xlint/lint2/hash.c
97
hte = xmalloc(sizeof(*hte));
usr.bin/xlint/lint2/hash.c
98
hte->h_name = xstrdup(s);
usr.bin/xlint/lint2/hash.c
99
hte->h_used = false;
usr.bin/xlint/lint2/lint2.h
177
struct hte *h_link; /* next hte with same hash function */
usr.bin/xlint/lint2/lint2.h
178
struct hte *h_hte; /* pointer to other htes (for renames) */
usr.bin/xlint/lint2/lint2.h
50
struct hte *_t_tag; /* hash table entry of tag if
usr.bin/xlint/lint2/lint2.h
52
struct hte *_t_tynam; /* hash table entry of typename if
usr.bin/xlint/lint2/read.c
1133
mkstatic(hte_t *hte)
usr.bin/xlint/lint2/read.c
1142
for (sym1 = hte->h_syms; sym1 != NULL; sym1 = sym1->s_next) {
usr.bin/xlint/lint2/read.c
1151
for (sym = hte->h_syms; sym != NULL && !ofnd; sym = sym->s_next) {
usr.bin/xlint/lint2/read.c
1155
for (call = hte->h_calls; call != NULL && !ofnd; call = call->f_next) {
usr.bin/xlint/lint2/read.c
1159
for (usym = hte->h_usyms; usym != NULL && !ofnd; usym = usym->u_next) {
usr.bin/xlint/lint2/read.c
1164
hte->h_used = true;
usr.bin/xlint/lint2/read.c
1166
hte->h_def = true;
usr.bin/xlint/lint2/read.c
1167
hte->h_static = true;
usr.bin/xlint/lint2/read.c
1177
for (nhte = hte; nhte->h_link != NULL; nhte = nhte->h_link)
usr.bin/xlint/lint2/read.c
1181
nhte->h_name = hte->h_name;
usr.bin/xlint/lint2/read.c
1198
for (symp = &hte->h_syms; (sym = *symp) != NULL; ) {
usr.bin/xlint/lint2/read.c
1202
if (hte->h_lsym == &sym->s_next)
usr.bin/xlint/lint2/read.c
1203
hte->h_lsym = symp;
usr.bin/xlint/lint2/read.c
1211
for (callp = &hte->h_calls; (call = *callp) != NULL; ) {
usr.bin/xlint/lint2/read.c
1214
if (hte->h_lcall == &call->f_next)
usr.bin/xlint/lint2/read.c
1215
hte->h_lcall = callp;
usr.bin/xlint/lint2/read.c
1223
for (usymp = &hte->h_usyms; (usym = *usymp) != NULL; ) {
usr.bin/xlint/lint2/read.c
1226
if (hte->h_lusym == &usym->u_next)
usr.bin/xlint/lint2/read.c
1227
hte->h_lusym = usymp;
usr.bin/xlint/lint2/read.c
1237
hte->h_def = nhte->h_def = false;
usr.bin/xlint/lint2/read.c
1238
for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
usr.bin/xlint/lint2/read.c
1240
hte->h_def = true;
usr.bin/xlint/lint2/read.c
1245
mkstatic(hte);
usr.bin/xlint/lint2/read.c
318
hte_t *hte;
usr.bin/xlint/lint2/read.c
376
hte = hash_search(renametab, name, false);
usr.bin/xlint/lint2/read.c
377
if (hte != NULL)
usr.bin/xlint/lint2/read.c
378
hte = hte->h_hte;
usr.bin/xlint/lint2/read.c
380
hte = htab_search(name, true);
usr.bin/xlint/lint2/read.c
381
hte->h_used = true;
usr.bin/xlint/lint2/read.c
385
*hte->h_lcall = fcall;
usr.bin/xlint/lint2/read.c
386
hte->h_lcall = &fcall->f_next;
usr.bin/xlint/lint2/read.c
471
hte_t *hte, *renamehte = NULL;
usr.bin/xlint/lint2/read.c
494
hte = htab_search(newname, true);
usr.bin/xlint/lint2/read.c
495
renamehte->h_hte = hte;
usr.bin/xlint/lint2/read.c
497
} else if (hte = renamehte->h_hte,
usr.bin/xlint/lint2/read.c
498
strcmp(hte->h_name, newname) != 0) {
usr.bin/xlint/lint2/read.c
506
hte = hash_search(renametab, name, false);
usr.bin/xlint/lint2/read.c
507
if (hte != NULL)
usr.bin/xlint/lint2/read.c
508
hte = hte->h_hte;
usr.bin/xlint/lint2/read.c
510
hte = htab_search(name, true);
usr.bin/xlint/lint2/read.c
512
hte->h_used |= used;
usr.bin/xlint/lint2/read.c
514
hte->h_def = true;
usr.bin/xlint/lint2/read.c
525
for (symp = hte->h_syms; symp != NULL; symp = symp->s_next) {
usr.bin/xlint/lint2/read.c
545
*hte->h_lsym = symp;
usr.bin/xlint/lint2/read.c
546
hte->h_lsym = &symp->s_next;
usr.bin/xlint/lint2/read.c
564
hte_t *hte;
usr.bin/xlint/lint2/read.c
575
hte = hash_search(renametab, name, false);
usr.bin/xlint/lint2/read.c
576
if (hte != NULL)
usr.bin/xlint/lint2/read.c
577
hte = hte->h_hte;
usr.bin/xlint/lint2/read.c
579
hte = htab_search(name, true);
usr.bin/xlint/lint2/read.c
580
hte->h_used = true;
usr.bin/xlint/lint2/read.c
582
*hte->h_lusym = usym;
usr.bin/xlint/lint2/read.c
583
hte->h_lusym = &usym->u_next;