Lines Matching defs:ltp

1397 	const type_t *ltp = ln->u.ops.left->tn_type;
1398 if (ltp->t_tspec != ARRAY || ltp->t_incomplete_array)
1417 int max_array_index = ltp->u.dimension - 1;
2385 typeok_point(const tnode_t *ln, const type_t *ltp, tspec_t lt)
2390 if (lt == FUNC || lt == VOID || ltp->t_bitfield)
2495 const type_t *ltp, tspec_t lt,
2505 error(171, type_name(ltp), type_name(rtp));
2508 error(107, op_name(op), type_name(ltp), type_name(rtp));
2512 error(108, op_name(op), type_name(ltp));
2518 const type_t *ltp, tspec_t lt,
2523 warn_incompatible_types(op, ltp, lt, rtp, rt);
2531 const type_t *ltp, tspec_t lt,
2537 warn_incompatible_types(op, ltp, lt, rtp, rt);
2541 !types_compatible(ltp->t_subt, rtp->t_subt, true, false, NULL)) {
2611 typeok_shift(const type_t *ltp, tspec_t lt, const tnode_t *rn, tspec_t rt)
2621 warning(267, (unsigned)rn->u.value.u.integer, type_name(ltp));
2641 warn_incompatible_pointers(op_t op, const type_t *ltp, const type_t *rtp)
2643 lint_assert(ltp->t_tspec == PTR);
2646 tspec_t lt = ltp->t_subt->t_tspec;
2655 warning(245, type_name(ltp),
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);
2705 const tnode_t *ln, const type_t *ltp, tspec_t lt,
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)
2743 type_t *lstp = ltp->t_subt;
2761 warn_incompatible_pointers(COLON, ltp, rtp);
2765 typeok_colon(const tnode_t *ln, const type_t *ltp, tspec_t lt,
2774 if (lt == STRUCT && rt == STRUCT && ltp->u.sou == rtp->u.sou)
2776 if (lt == UNION && rt == UNION && ltp->u.sou == rtp->u.sou)
2788 warning(123, lx, type_name(ltp),
2796 warning(126, type_name(ltp), type_name(rtp));
2801 typeok_colon_pointer(ltp, rtp);
2806 error(126, type_name(ltp), type_name(rtp));
2828 typeok_assign(op_t op, const tnode_t *ln, const type_t *ltp, tspec_t lt)
2841 } else if (ltp->t_const
2842 || (is_struct_or_union(lt) && has_constant_member(ltp))) {
2852 const type_t *ltp, tspec_t lt,
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);
3045 const type_t *ltp, tspec_t lt,
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));
3077 const type_t *ltp, tspec_t lt,
3085 warning(153, type_name(rtp), type_name(ltp), arg);
3087 warn_incompatible_pointers(op, ltp, rtp);
3093 const type_t *ltp, tspec_t lt,
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;
3127 if ((lt = (ltp = ln->tn_type)->t_tspec) == PTR)
3128 lst = (lstp = ltp->t_subt)->t_tspec;
3139 return ltp->u.sou == rtp->u.sou;
3144 query_message(15, type_name(ltp));
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);
3238 const tnode_t *ln, const type_t *ltp, tspec_t lt,
3245 return typeok_point(ln, ltp, lt);
3250 return typeok_incdec(op, ln, ltp);
3252 return typeok_indir(ltp, lt);
3254 return typeok_address(op, ln, ltp, lt);
3256 return typeok_plus(op, ltp, lt, rtp, rt);
3258 return typeok_minus(op, ltp, lt, rtp, rt);
3265 typeok_shift(ltp, lt, rn, 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);
3313 return typeok_assign(op, ln, ltp, lt);
3416 const tnode_t *ln, const type_t *ltp,
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))) {
3438 type_t *ltp = ln->tn_type;
3439 tspec_t lt = ltp->t_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);