Lines Matching defs:tp2

236 	type_t	*tp1, *tp2;
251 tp2 = TP(call->f_type)->t_subt;
252 eq = eqtype(tp1, tp2, 1, 0, 0, (warn = 0, &warn));
296 type_t *tp1, *tp2;
310 tp2 = TP(sym->s_type);
312 if (tp1->t_tspec == FUNC && tp2->t_tspec == FUNC) {
313 eq = eqtype(tp1->t_subt, tp2->t_subt, 1, 0, 0, &warn);
315 eq = eqtype(tp1, tp2, 0, 0, 0, &warn);
334 type_t *tp1, *tp2, **ap1, **ap2;
371 if ((tp2 = TP(call->f_type))->t_tspec != FUNC)
374 ap2 = tp2->t_args;
1099 type_t **ap1, **ap2, *tp1, *tp2;
1142 tp2 = TP(sym->s_type);
1143 if (tp1->t_vararg == tp2->t_vararg)
1145 if (tp2->t_vararg &&
1174 eqtype(type_t *tp1, type_t *tp2, int ignqual, int promot, int asgn, int *warn)
1182 while (tp1 != NULL && tp2 != NULL) {
1201 if (indir == 1 && (t == VOID || tp2->t_tspec == VOID))
1205 if (t != tp2->t_tspec) {
1212 if (styp(t) != styp(tp2->t_tspec))
1216 if (tp1->t_isenum && tp2->t_isenum) {
1217 if (tp1->t_istag && tp2->t_istag) {
1218 return (tp1->t_tag == tp2->t_tag);
1219 } else if (tp1->t_istynam && tp2->t_istynam) {
1220 return (tp1->t_tynam == tp2->t_tynam);
1221 } else if (tp1->t_isuniqpos && tp2->t_isuniqpos) {
1223 tp2->t_uniqpos.p_line &&
1225 tp2->t_uniqpos.p_file &&
1227 tp2->t_uniqpos.p_uniq);
1239 if (!tp1->t_const && tp2->t_const)
1241 if (!tp1->t_volatile && tp2->t_volatile)
1244 if (tp1->t_const != tp2->t_const)
1246 if (tp1->t_const != tp2->t_const)
1251 if (tp1->t_istag && tp2->t_istag) {
1252 return (tp1->t_tag == tp2->t_tag);
1253 } else if (tp1->t_istynam && tp2->t_istynam) {
1254 return (tp1->t_tynam == tp2->t_tynam);
1255 } else if (tp1->t_isuniqpos && tp2->t_isuniqpos) {
1257 tp2->t_uniqpos.p_line &&
1259 tp2->t_uniqpos.p_file &&
1261 tp2->t_uniqpos.p_uniq);
1267 if (t == ARRAY && tp1->t_dim != tp2->t_dim) {
1268 if (tp1->t_dim != 0 && tp2->t_dim != 0)
1273 if (tp1->t_proto && tp2->t_proto) {
1274 if (!eqargs(tp1, tp2, warn))
1279 } else if (tp2->t_proto) {
1280 if (!mnoarg(tp2, warn))
1286 tp2 = tp2->t_subt;
1293 return (tp1 == tp2);
1300 eqargs(type_t *tp1, type_t *tp2, int *warn)
1304 if (tp1->t_vararg != tp2->t_vararg)
1308 a2 = tp2->t_args;