Lines Matching defs:def

91 	sym_t *sym, *def, *pdecl, *decl;
102 def = pdecl = decl = NULL;
104 if (def == NULL && (sym->s_def == DEF || sym->s_def == TDEF))
105 def = sym;
119 chkvtui(hte, def, decl);
121 chkvtdi(hte, def, decl);
123 chkfaui(hte, def, decl);
125 check_return_values(hte, def);
127 check_argument_declarations(hte, def, decl);
234 chkvtui(const hte_t *hte, sym_t *def, sym_t *decl)
244 if (def == NULL)
245 def = decl;
246 if (def == NULL)
249 t1 = (tp1 = TP(def->s_type)->t_subt)->t_tspec;
274 mkpos(&def->s_pos), mkpos(&call->f_pos));
281 mkpos(&def->s_pos), mkpos(&call->f_pos));
292 chkvtdi(const hte_t *hte, sym_t *def, sym_t *decl)
298 if (def == NULL)
299 def = decl;
300 if (def == NULL)
303 tp1 = TP(def->s_type);
306 if (sym == def)
319 msg(5, hte->h_name, type_name(xt1), mkpos(&def->s_pos),
339 chkfaui(const hte_t *hte, sym_t *def, sym_t *decl)
357 if (def != NULL) {
358 if ((tp1 = TP(def->s_type))->t_tspec != FUNC)
360 pos1p = &def->s_pos;
382 if (def != NULL && def->s_check_only_first_args &&
383 n >= def->s_check_num_args)
386 chkau(hte, n, def, decl, pos1p, call1, call,
393 } else if (def != NULL && def->s_check_only_first_args &&
394 n >= def->s_check_num_args) {
414 if (def == NULL || (!def->s_printflike && !def->s_scanflike))
416 as = def->s_printflike
417 ? def->s_printflike_arg
418 : def->s_scanflike_arg;
425 if (def->s_printflike) {
438 * def the function definition or NULL
441 * call1 first call, if both def and decl are old-style def/decl
443 * arg1 currently checked argument of def/decl/call1
448 chkau(const hte_t *hte, int n, sym_t *def, sym_t *decl, pos_t *pos1p,
456 * If a function definition is available (def != NULL), we compare the
465 promote = def != NULL && def->s_old_style_function;
471 asgn = def != NULL || (decl != NULL && TP(decl->s_type)->t_proto);
1068 check_return_values(const hte_t *hte, sym_t *def)
1073 if (def == NULL)
1080 if (def->s_function_has_return_value) {
1122 check_argument_declarations(const hte_t *hte, sym_t *def, sym_t *decl)
1130 if (def != NULL) {
1131 osdef = def->s_old_style_function;
1132 sym1 = def;