Home | History | Annotate | Download | only in lint1

Lines Matching defs:rtp

1443 	const type_t *rtp = rn->u.ops.left->tn_type;
1444 const sym_t *ec = rtp->u.enumer->en_first_enumerator;
1472 warning(348, (int)max_enum_value, max_ec->s_name, type_name(rtp),
2531 const type_t *rtp, tspec_t rt)
2540 error(171, type_name(ltp), type_name(rtp));
2543 error(107, op_name(op), type_name(ltp), type_name(rtp));
2554 const type_t *rtp, tspec_t rt)
2558 warn_incompatible_types(op, ltp, lt, rtp, rt);
2567 const type_t *rtp, tspec_t rt)
2572 warn_incompatible_types(op, ltp, lt, rtp, rt);
2576 !types_compatible(ltp->t_subt, rtp->t_subt, true, false, NULL)) {
2693 warn_incompatible_pointers(op_t op, const type_t *ltp, const type_t *rtp)
2696 lint_assert(rtp->t_tspec == PTR);
2699 tspec_t rt = rtp->t_subt->t_tspec;
2708 op_name(op), type_name(rtp));
2713 warning(184, type_name(ltp), type_name(rtp));
2717 type_name(ltp), type_name(rtp), op_name(op));
2725 type_t *ltp = ln->tn_type, *rtp = rn->tn_type;
2726 tspec_t lst = ltp->t_subt->t_tspec, rst = rtp->t_subt->t_tspec;
2742 if (!types_compatible(ltp->t_subt, rtp->t_subt, true, false, NULL)) {
2743 warn_incompatible_pointers(op, ltp, rtp);
2758 const tnode_t *rn, const type_t *rtp, tspec_t rt)
2769 warn_incompatible_types(op, ltp, lt, rtp, rt);
2776 warning(123, lx, type_name(ltp), rx, type_name(rtp), op_name(op));
2793 typeok_colon_pointer(const type_t *ltp, const type_t *rtp)
2796 type_t *rstp = rtp->t_subt;
2813 warn_incompatible_pointers(COLON, ltp, rtp);
2818 const tnode_t *rn, const type_t *rtp, tspec_t rt)
2826 if (lt == STRUCT && rt == STRUCT && ltp->u.sou == rtp->u.sou)
2828 if (lt == UNION && rt == UNION && ltp->u.sou == rtp->u.sou)
2841 rx, type_name(rtp), op_name(COLON));
2853 typeok_colon_pointer(ltp, rtp);
2905 const type_t *rtp, tspec_t rt)
2911 warn_incompatible_types(op, ltp, lt, rtp, rt);
2917 warn_incompatible_types(op, ltp, lt, rtp, rt);
2922 warn_incompatible_types(op, ltp, lt, rtp, rt);
2928 warn_incompatible_types(op, ltp, lt, rtp, rt);
3056 const type_t *rtp, tspec_t rt,
3075 qualifiers + 1, type_name(rtp));
3079 warning(383, type_name(rtp), arg,
3085 qualifiers + 1, type_name(rtp));
3099 const type_t *rtp, tspec_t rt)
3113 lx, type_name(ltp), rx, type_name(rtp), op_name(op));
3118 lx, type_name(ltp), rx, type_name(rtp), arg);
3123 lx, type_name(ltp), rx, type_name(rtp), op_name(op));
3132 const type_t *rtp, tspec_t rt)
3139 warning(153, type_name(rtp), type_name(ltp), arg);
3141 warn_incompatible_pointers(op, ltp, rtp);
3148 const type_t *rtp, tspec_t rt)
3153 error(185, type_name(ltp), type_name(rtp));
3157 error(211, type_name(ltp), type_name(rtp));
3161 warning(155, type_name(rtp), type_name(ltp), arg);
3164 warn_incompatible_types(op, ltp, lt, rtp, rt);
3179 type_t *ltp, *rtp, *lstp = NULL, *rstp = NULL;
3183 if ((rt = (rtp = rn->tn_type)->t_tspec) == PTR)
3184 rst = (rstp = rtp->t_subt)->t_tspec;
3193 return ltp->u.sou == rtp->u.sou;
3205 lt, lstp, lst, rn, rtp, rt, rstp, rst))
3208 if (check_assign_pointer_integer(op, arg, ltp, lt, rtp, rt))
3211 if (check_assign_pointer(op, arg, ltp, lt, rtp, rt))
3214 warn_assign(op, arg, ltp, lt, rtp, rt);
3291 const tnode_t *rn, const type_t *rtp, tspec_t rt)
3308 return typeok_plus(op, ltp, lt, rtp, rt);
3310 return typeok_minus(op, ltp, lt, rtp, rt);
3324 return typeok_compare(op, ln, ltp, lt, rn, rtp, rt);
3333 return typeok_colon(ln, ltp, lt, rn, rtp, rt);
3348 warn_incompatible_types(op, ltp, lt, rtp, rt);
3470 const tnode_t *rn, const type_t *rtp)
3473 (ltp->t_is_enum || (mp->m_binary && rtp->t_is_enum))) {
3476 (ltp->t_is_enum && rtp != NULL && rtp->t_is_enum)) {
3479 (ltp->t_is_enum || (rtp != NULL && rtp->t_is_enum))) {
3495 type_t *rtp = mp->m_binary ? rn->tn_type : NULL;
3496 tspec_t rt = mp->m_binary ? rtp->t_tspec : NO_TSPEC;
3500 if (!typeok_scalar(op, mp, ltp, lt, rtp, rt))
3503 if (!typeok_op(op, call, arg, ln, ltp, lt, rn, rtp, rt))
3506 typeok_enum(op, mp, arg, ln, ltp, rn, rtp);