Home | History | Annotate | Download | only in lint1

Lines Matching refs:tp1

157 	 * types_compatible, which simply tests whether 'tp1->u.sou ==
2199 qualifiers_correspond(const type_t *tp1, const type_t *tp2, bool ignqual)
2202 if (tp1->t_const != tp2->t_const && !ignqual && allow_c90)
2204 if (tp1->t_volatile != tp2->t_volatile && !ignqual && allow_c90)
2210 pointer_types_are_compatible(const type_t *tp1, const type_t *tp2, bool ignqual)
2213 return tp1->t_tspec == VOID || tp2->t_tspec == VOID ||
2214 qualifiers_correspond(tp1, tp2, ignqual);
2218 prototypes_compatible(const type_t *tp1, const type_t *tp2, bool *dowarn)
2221 if (tp1->t_vararg != tp2->t_vararg)
2224 const sym_t *p1 = tp1->u.params;
2263 types_compatible(const type_t *tp1, const type_t *tp2,
2267 while (tp1 != NULL && tp2 != NULL) {
2268 tspec_t t = tp1->t_tspec;
2287 if (!qualifiers_correspond(tp1, tp2, ignqual))
2291 return tp1->u.sou == tp2->u.sou;
2294 return tp1->u.enumer == tp2->u.enumer;
2296 if (t == ARRAY && tp1->u.dimension != tp2->u.dimension) {
2297 if (tp1->u.dimension != 0 && tp2->u.dimension != 0)
2302 if (tp1->t_proto && tp2->t_proto) {
2303 if (!prototypes_compatible(tp1, tp2, dowarn))
2305 } else if ((tp1->t_proto || tp2->t_proto)
2307 && !is_old_style_compat(tp1->t_proto ? tp1 : tp2))
2311 tp1 = tp1->t_subt;
2316 return tp1 == tp2;