Home | History | Annotate | Download | only in lint2

Lines Matching defs:tp1

242 	type_t *tp1, *tp2;
254 t1 = (tp1 = TP(def->s_type)->t_subt)->t_tspec;
257 eq = types_compatible(tp1, tp2,
304 const type_t *tp1 = TP(def->s_type);
310 bool is_func = tp1->t_tspec == FUNC && tp2->t_tspec == FUNC;
311 const type_t *xt1 = is_func ? tp1->t_subt : tp1;
341 const type_t *tp1, *tp2, **ap1, **ap2;
355 tp1 = NULL;
358 if ((tp1 = TP(def->s_type))->t_tspec != FUNC)
362 if ((tp1 = TP(decl->s_type))->t_tspec != FUNC)
366 if (tp1 == NULL) {
369 if ((tp1 = TP(call1->f_type))->t_tspec != FUNC)
378 ap1 = tp1->t_args;
400 } else if (*ap2 != NULL && tp1->t_proto && tp1->t_vararg) {
1130 const type_t **ap1, **ap2, *tp1, *tp2;
1171 tp1 = TP(sym1->s_type);
1173 if (tp1->t_vararg == tp2->t_vararg)
1203 types_compatible(const type_t *tp1, const type_t *tp2,
1212 while (tp1 != NULL && tp2 != NULL) {
1214 t = tp1->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) {
1251 return (tp1->t_uniqpos.p_line ==
1253 tp1->t_uniqpos.p_file ==
1255 tp1
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) {
1285 return (tp1->t_uniqpos.p_line ==
1287 tp1->t_uniqpos.p_file ==
1289 tp1->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))
1305 } else if (tp1->t_proto) {
1306 if (!matches_no_arg_function(tp1, dowarn))
1314 tp1 = tp1->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)
1334 const type_t **a1 = tp1->t_args;