Lines Matching refs:tp1

236 	type_t	*tp1, *tp2;
249 t1 = (tp1 = TP(def->s_type)->t_subt)->t_tspec;
252 eq = eqtype(tp1, tp2, 1, 0, 0, (warn = 0, &warn));
296 type_t *tp1, *tp2;
306 tp1 = TP(def->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;
350 tp1 = NULL;
353 if ((tp1 = TP(def->s_type))->t_tspec != FUNC)
357 if ((tp1 = TP(decl->s_type))->t_tspec != FUNC)
361 if (tp1 == NULL) {
364 if ((tp1 = TP(call1->f_type))->t_tspec != FUNC)
373 ap1 = tp1->t_args;
393 } else if (*ap2 != NULL && tp1->t_proto && tp1->t_vararg) {
1099 type_t **ap1, **ap2, *tp1, *tp2;
1141 tp1 = TP(sym1->s_type);
1143 if (tp1->t_vararg == 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) {
1184 t = tp1->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) {
1222 return (tp1->t_uniqpos.p_line ==
1224 tp1->t_uniqpos.p_file ==
1226 tp1->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) {
1256 return (tp1->t_uniqpos.p_line ==
1258 tp1->t_uniqpos.p_file ==
1260 tp1->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))
1276 } else if (tp1->t_proto) {
1277 if (!mnoarg(tp1, warn))
1285 tp1 = tp1->t_subt;
1293 return (tp1 == tp2);
1300 eqargs(type_t *tp1, type_t *tp2, int *warn)
1304 if (tp1->t_vararg != tp2->t_vararg)
1307 a1 = tp1->t_args;