Lines Matching defs:rtp
1406 const type_t *rtp = rn->u.ops.left->tn_type;
1407 const sym_t *ec = rtp->u.enumer->en_first_enumerator;
1430 warning(348, (int)max_enum_value, max_ec->s_name, type_name(rtp),
2496 const type_t *rtp, tspec_t rt)
2505 error(171, type_name(ltp), type_name(rtp));
2508 error(107, op_name(op), type_name(ltp), type_name(rtp));
2519 const type_t *rtp, tspec_t rt)
2523 warn_incompatible_types(op, ltp, lt, rtp, rt);
2532 const type_t *rtp, tspec_t rt)
2537 warn_incompatible_types(op, ltp, lt, rtp, rt);
2541 !types_compatible(ltp->t_subt, rtp->t_subt, true, false, NULL)) {
2641 warn_incompatible_pointers(op_t op, const type_t *ltp, const type_t *rtp)
2644 lint_assert(rtp->t_tspec == PTR);
2647 tspec_t rt = rtp->t_subt->t_tspec;
2656 op_name(op), type_name(rtp));
2661 warning(184, type_name(ltp), type_name(rtp));
2665 type_name(ltp), type_name(rtp), op_name(op));
2673 type_t *ltp = ln->tn_type, *rtp = rn->tn_type;
2674 tspec_t lst = ltp->t_subt->t_tspec, rst = rtp->t_subt->t_tspec;
2690 if (!types_compatible(ltp->t_subt, rtp->t_subt, true, false, NULL)) {
2691 warn_incompatible_pointers(op, ltp, rtp);
2706 const tnode_t *rn, const type_t *rtp, tspec_t rt)
2717 warn_incompatible_types(op, ltp, lt, rtp, rt);
2724 warning(123, lx, type_name(ltp), rx, type_name(rtp), op_name(op));
2741 typeok_colon_pointer(const type_t *ltp, const type_t *rtp)
2744 type_t *rstp = rtp->t_subt;
2761 warn_incompatible_pointers(COLON, ltp, rtp);
2766 const tnode_t *rn, const type_t *rtp, tspec_t rt)
2774 if (lt == STRUCT && rt == STRUCT && ltp->u.sou == rtp->u.sou)
2776 if (lt == UNION && rt == UNION && ltp->u.sou == rtp->u.sou)
2789 rx, type_name(rtp), op_name(COLON));
2796 warning(126, type_name(ltp), type_name(rtp));
2801 typeok_colon_pointer(ltp, rtp);
2806 error(126, type_name(ltp), type_name(rtp));
2853 const type_t *rtp, tspec_t rt)
2859 warn_incompatible_types(op, ltp, lt, rtp, rt);
2865 warn_incompatible_types(op, ltp, lt, rtp, rt);
2870 warn_incompatible_types(op, ltp, lt, rtp, rt);
2876 warn_incompatible_types(op, ltp, lt, rtp, rt);
3004 const type_t *rtp, tspec_t rt,
3023 qualifiers + 1, type_name(rtp));
3027 warning(383, type_name(rtp), arg, qualifiers + 1);
3032 qualifiers + 1, type_name(rtp));
3046 const type_t *rtp, tspec_t rt)
3059 warning(183, lx, type_name(ltp), rx, type_name(rtp));
3064 lx, type_name(ltp), rx, type_name(rtp), arg);
3069 lx, type_name(ltp), rx, type_name(rtp), op_name(op));
3078 const type_t *rtp, tspec_t rt)
3085 warning(153, type_name(rtp), type_name(ltp), arg);
3087 warn_incompatible_pointers(op, ltp, rtp);
3094 const type_t *rtp, tspec_t rt)
3099 error(185, type_name(ltp), type_name(rtp));
3103 error(211, type_name(ltp), type_name(rtp));
3107 warning(155, type_name(rtp), type_name(ltp), arg);
3110 warn_incompatible_types(op, ltp, lt, rtp, rt);
3125 type_t *ltp, *rtp, *lstp = NULL, *rstp = NULL;
3129 if ((rt = (rtp = rn->tn_type)->t_tspec) == PTR)
3130 rst = (rstp = rtp->t_subt)->t_tspec;
3139 return ltp->u.sou == rtp->u.sou;
3151 lt, lstp, lst, rn, rtp, rt, rstp, rst))
3154 if (check_assign_pointer_integer(op, arg, ltp, lt, rtp, rt))
3157 if (check_assign_pointer(op, arg, ltp, lt, rtp, rt))
3160 warn_assign(op, arg, ltp, lt, rtp, rt);
3239 const tnode_t *rn, const type_t *rtp, tspec_t rt)
3256 return typeok_plus(op, ltp, lt, rtp, rt);
3258 return typeok_minus(op, ltp, lt, rtp, rt);
3272 return typeok_compare(op, ln, ltp, lt, rn, rtp, rt);
3281 return typeok_colon(ln, ltp, lt, rn, rtp, rt);
3296 warn_incompatible_types(op, ltp, lt, rtp, rt);
3417 const tnode_t *rn, const type_t *rtp)
3420 (ltp->t_is_enum || (mp->m_binary && rtp->t_is_enum))) {
3423 (ltp->t_is_enum && rtp != NULL && rtp->t_is_enum)) {
3426 (ltp->t_is_enum || (rtp != NULL && rtp->t_is_enum))) {
3441 type_t *rtp = mp->m_binary ? rn->tn_type : NULL;
3442 tspec_t rt = mp->m_binary ? rtp->t_tspec : NO_TSPEC;
3446 if (!typeok_scalar(op, mp, ltp, lt, rtp, rt))
3449 if (!typeok_op(op, arg, ln, ltp, lt, rn, rtp, rt))
3452 typeok_enum(op, mp, arg, ln, ltp, rn, rtp);