Lines Matching defs:call
230 * Print a warning if the return value assumed for a function call
236 * call as it's done for function arguments.
241 fcall_t *call;
255 for (call = hte->h_calls; call != NULL; call = call->f_next) {
256 tp2 = TP(call->f_type)->t_subt;
259 if (!call->f_rused) {
279 mkpos(&def->s_pos), mkpos(&call->f_pos));
286 mkpos(&def->s_pos), mkpos(&call->f_pos));
335 * not match the function definition, declaration or another call
343 fcall_t *calls, *call, *call1;
353 * or prototype declaration, the first function call is used.
375 for (call = calls; call != NULL; call = call->f_next) {
376 if ((tp2 = TP(call->f_type))->t_tspec != FUNC)
386 chkau(hte, n, def, decl, pos1p, call1, call,
397 * of the call must be at least as large as the
402 * prototype with ... and function call with at least
409 total_args(n, ap2), mkpos(&call->f_pos));
419 for (ai = call->f_args; ai != NULL; ai = ai->a_next) {
426 printflike(hte, call, n, ai->a_fstrg, ap2);
428 scanflike(hte, call, n, ai->a_fstrg, ap2);
434 * Check a single argument in a function call.
440 * pos1p position of definition, declaration of first call
441 * call1 first call, if both def and decl are old-style def/decl
442 * call checked call
444 * arg2 currently checked argument of call
449 const pos_t *pos1p, const fcall_t *call1, const fcall_t *call,
458 * function call (call) with the definition. Otherwise, if a function
460 * != NULL && TP(decl->s_type)->t_proto), we compare the call with this
461 * declaration. Otherwise we compare it with the first call we have
529 * treat a definition like a call with variable
545 * (second) call, if this was a constant, otherwise to
548 for (ai = call->f_args; ai != NULL; ai = ai->a_next) {
577 for (ai = call->f_args; ai != NULL; ai = ai->a_next) {
592 type_name(arg2), mkpos(&call->f_pos));
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));
1072 fcall_t *call;
1099 for (call = hte->h_calls; call != NULL; call = call->f_next) {
1100 used |= call->f_rused || call->f_rdisc;
1101 ignored |= !call->f_rused && !call->f_rdisc;
1112 for (call = hte->h_calls; call != NULL; call = call->f_next) {
1113 if (call->f_rused)
1115 msg(10, hte->h_name, mkpos(&call->f_pos));