Lines Matching defs:tp2
242 type_t *tp1, *tp2;
256 tp2 = TP(call->f_type)->t_subt;
257 eq = types_compatible(tp1, tp2,
308 const type_t *tp2 = TP(sym->s_type);
310 bool is_func = tp1->t_tspec == FUNC && tp2->t_tspec == FUNC;
312 const type_t *xt2 = is_func ? tp2->t_subt : tp2;
341 const type_t *tp1, *tp2, **ap1, **ap2;
376 if ((tp2 = TP(call->f_type))->t_tspec != FUNC)
379 ap2 = tp2->t_args;
1130 const type_t **ap1, **ap2, *tp1, *tp2;
1172 tp2 = TP(sym->s_type);
1173 if (tp1->t_vararg == tp2->t_vararg)
1175 if (tp2->t_vararg && sym1->s_check_only_first_args &&
1203 types_compatible(const type_t *tp1, const type_t *tp2,
1212 while (tp1 != NULL && tp2 != NULL) {
1230 if (indir == 1 && (t == VOID || tp2->t_tspec == VOID))
1234 if (t != tp2->t_tspec) {
1241 if (signed_type(t) != signed_type(tp2->t_tspec))
1245 if (tp1->t_is_enum && tp2->t_is_enum) {
1246 if (tp1->t_istag && tp2->t_istag) {
1247 return tp1->t_tag == tp2->t_tag;
1248 } else if (tp1->t_istynam && tp2->t_istynam) {
1249 return tp1->t_tynam == tp2->t_tynam;
1250 } else if (tp1->t_isuniqpos && tp2->t_isuniqpos) {
1252 tp2->t_uniqpos.p_line &&
1254 tp2->t_uniqpos.p_file &&
1256 tp2->t_uniqpos.p_uniq);
1268 if (!tp1->t_const && tp2->t_const)
1270 if (!tp1->t_volatile && tp2->t_volatile)
1273 if (tp1->t_const != tp2->t_const)
1275 if (tp1->t_const != tp2->t_const)
1280 if (tp1->t_istag && tp2->t_istag) {
1281 return tp1->t_tag == tp2->t_tag;
1282 } else if (tp1->t_istynam && tp2->t_istynam) {
1283 return tp1->t_tynam == tp2->t_tynam;
1284 } else if (tp1->t_isuniqpos && tp2->t_isuniqpos) {
1286 tp2->t_uniqpos.p_line &&
1288 tp2->t_uniqpos.p_file &&
1290 tp2->t_uniqpos.p_uniq);
1296 if (t == ARRAY && tp1->t_dim != tp2->t_dim) {
1297 if (tp1->t_dim != 0 && tp2->t_dim != 0)
1302 if (tp1->t_proto && tp2->t_proto) {
1303 if (!prototypes_compatible(tp1, tp2, dowarn))
1308 } else if (tp2->t_proto) {
1309 if (!matches_no_arg_function(tp2, dowarn))
1315 tp2 = tp2->t_subt;
1321 return tp1 == tp2;
1328 prototypes_compatible(const type_t *tp1, const type_t *tp2, bool *dowarn)
1331 if (tp1->t_vararg != tp2->t_vararg)
1335 const type_t **a2 = tp2->t_args;