Lines Matching defs:hte
84 hte_t *hte;
86 if ((hte = htab_search("main", false)) != NULL)
87 hte->h_used = true;
94 check_name(const hte_t *hte)
99 check_used_not_defined(hte);
100 check_defined_not_used(hte);
102 check_declared_not_used_or_defined(hte);
104 check_multiple_definitions(hte);
108 for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
124 chkvtui(hte, def, decl);
126 chkvtdi(hte, def, decl);
128 chkfaui(hte, def, decl);
130 check_return_values(hte, def);
132 check_argument_declarations(hte, def, decl);
139 check_used_not_defined(const hte_t *hte)
144 if (!hte->h_used || hte->h_def)
147 if ((fcall = hte->h_calls) != NULL) {
149 msg(0, hte->h_name, mkpos(&fcall->f_pos));
150 } else if ((usym = hte->h_usyms) != NULL) {
152 msg(0, hte->h_name, mkpos(&usym->u_pos));
160 check_defined_not_used(const hte_t *hte)
164 if (!hte->h_def || hte->h_used)
167 for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
170 msg(1, hte->h_name, mkpos(&sym->s_pos));
181 check_declared_not_used_or_defined(const hte_t *hte)
185 if (hte->h_syms == NULL || hte->h_used || hte->h_def)
188 sym = hte->h_syms;
195 msg(2, hte->h_name, mkpos(&sym->s_pos));
203 check_multiple_definitions(const hte_t *hte)
207 if (!hte->h_def)
211 for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
225 msg(3, hte->h_name, mkpos(&def1->s_pos), mkpos(&sym->s_pos));
239 chkvtui(const hte_t *hte, const sym_t *def, const sym_t *decl)
246 if (hte->h_calls == NULL)
255 for (call = hte->h_calls; call != NULL; call = call->f_next) {
278 msg(17, hte->h_name,
285 msg(4, hte->h_name,
297 chkvtdi(const hte_t *hte, const sym_t *def, const sym_t *decl)
305 for (sym_t *sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
317 msg(5, hte->h_name,
339 chkfaui(const hte_t *hte, const sym_t *def, const sym_t *decl)
347 if ((calls = hte->h_calls) == NULL)
386 chkau(hte, n, def, decl, pos1p, call1, call,
408 msg(7, hte->h_name, total_args(n, ap1), mkpos(pos1p),
426 printflike(hte, call, n, ai->a_fstrg, ap2);
428 scanflike(hte, call, n, ai->a_fstrg, ap2);
436 * hte a pointer to the hash table entry of the function
447 chkau(const hte_t *hte,
591 msg(6, hte->h_name, n, type_name(arg1), mkpos(pos1p),
600 printflike(const hte_t *hte, const fcall_t *call,
615 too_many_arguments(hte, call);
619 bad_format_string(hte, call);
662 too_few_arguments(hte, call);
667 inconsistent_arguments(hte, call, n);
681 too_few_arguments(hte, call);
686 inconsistent_arguments(hte, call, n);
688 bad_format_string(hte, call);
708 bad_format_string(hte, call);
715 bad_format_string(hte, call);
720 too_few_arguments(hte, call);
729 bad_format_string(hte, call);
735 inconsistent_arguments(hte, call, n);
738 inconsistent_arguments(hte, call, n);
745 inconsistent_arguments(hte, call, n);
749 bad_format_string(hte, call);
753 inconsistent_arguments(hte, call, n);
756 inconsistent_arguments(hte, call, n);
760 inconsistent_arguments(hte, call, n);
763 inconsistent_arguments(hte, call, n);
767 bad_format_string(hte, call);
779 bad_format_string(hte, call);
781 inconsistent_arguments(hte, call, n);
784 bad_format_string(hte, call);
786 inconsistent_arguments(hte, call, n);
789 bad_format_string(hte, call);
792 inconsistent_arguments(hte, call, n);
796 bad_format_string(hte, call);
798 inconsistent_arguments(hte, call, n);
801 bad_format_string(hte, call);
803 inconsistent_arguments(hte, call, n);
806 inconsistent_arguments(hte, call, n);
809 inconsistent_arguments(hte, call, n);
812 inconsistent_arguments(hte, call, n);
815 bad_format_string(hte, call);
828 scanflike(const hte_t *hte, const fcall_t *call,
843 too_many_arguments(hte, call);
847 bad_format_string(hte, call);
879 bad_format_string(hte, call);
886 too_few_arguments(hte, call);
896 bad_format_string(hte, call);
902 inconsistent_arguments(hte, call, n);
904 inconsistent_arguments(hte, call, n);
906 inconsistent_arguments(hte, call, n);
908 inconsistent_arguments(hte, call, n);
913 bad_format_string(hte, call);
926 bad_format_string(hte, call);
931 bad_format_string(hte, call);
940 bad_format_string(hte, call);
949 bad_format_string(hte, call);
955 bad_format_string(hte, call);
964 bad_format_string(hte, call);
973 bad_format_string(hte, call);
979 bad_format_string(hte, call);
982 bad_format_string(hte, call);
986 bad_format_string(hte, call);
993 inconsistent_arguments(hte, call, n);
996 inconsistent_arguments(hte, call, n);
1001 bad_format_string(hte, call);
1004 inconsistent_arguments(hte, call, n);
1007 inconsistent_arguments(hte, call, n);
1011 bad_format_string(hte, call);
1020 bad_format_string(const hte_t *hte, const fcall_t *call)
1024 msg(13, hte->h_name, mkpos(&call->f_pos));
1028 inconsistent_arguments(const hte_t *hte, const fcall_t *call, int n)
1032 msg(14, hte->h_name, mkpos(&call->f_pos), n);
1036 too_few_arguments(const hte_t *hte, const fcall_t *call)
1040 msg(15, hte->h_name, mkpos(&call->f_pos));
1044 too_many_arguments(const hte_t *hte, const fcall_t *call)
1048 msg(16, hte->h_name, mkpos(&call->f_pos));
1070 check_return_values(const hte_t *hte, const sym_t *def)
1079 if (hte->h_calls == NULL)
1091 if (hflag && bsearch(hte->h_name, ignorelist,
1099 for (call = hte->h_calls; call != NULL; call = call->f_next) {
1105 msg(8, hte->h_name);
1108 msg(9, hte->h_name);
1112 for (call = hte->h_calls; call != NULL; call = call->f_next) {
1115 msg(10, hte->h_name, mkpos(&call->f_pos));
1124 check_argument_declarations(const hte_t *hte,
1149 for (sym = hte->h_syms; sym != NULL; sym = sym->s_next) {
1162 msg(11, hte->h_name, n + 1,
1181 msg(12, hte->h_name,