Lines Matching defs:ltp
1434 const type_t *ltp = ln->tn_type;
1435 if (ltp->t_tspec != ARRAY || ltp->t_incomplete_array)
1454 int max_array_index = ltp->u.dimension - 1;
2420 typeok_point(const tnode_t *ln, const type_t *ltp, tspec_t lt)
2425 if (lt == FUNC || lt == VOID || ltp->t_bitfield)
2530 const type_t *ltp, tspec_t lt,
2540 error(171, type_name(ltp), type_name(rtp));
2543 error(107, op_name(op), type_name(ltp), type_name(rtp));
2547 error(108, op_name(op), type_name(ltp));
2553 const type_t *ltp, tspec_t lt,
2558 warn_incompatible_types(op, ltp, lt, rtp, rt);
2566 const type_t *ltp, tspec_t lt,
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)
2695 lint_assert(ltp->t_tspec == PTR);
2698 tspec_t lt = ltp->t_subt->t_tspec;
2707 warning(245, type_name(ltp),
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);
2757 const tnode_t *ln, const type_t *ltp, tspec_t lt,
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)
2795 type_t *lstp = ltp->t_subt;
2813 warn_incompatible_pointers(COLON, ltp, rtp);
2817 typeok_colon(const tnode_t *ln, const type_t *ltp, tspec_t lt,
2826 if (lt == STRUCT && rt == STRUCT && ltp->u.sou == rtp->u.sou)
2828 if (lt == UNION && rt == UNION && ltp->u.sou == rtp->u.sou)
2840 warning(123, lx, type_name(ltp),
2853 typeok_colon_pointer(ltp, rtp);
2880 typeok_assign(op_t op, const tnode_t *ln, const type_t *ltp, tspec_t lt)
2893 } else if (ltp->t_const
2894 || (is_struct_or_union(lt) && has_constant_member(ltp))) {
2904 const type_t *ltp, tspec_t lt,
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);
3098 const type_t *ltp, tspec_t lt,
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));
3131 const type_t *ltp, tspec_t lt,
3139 warning(153, type_name(rtp), type_name(ltp), arg);
3141 warn_incompatible_pointers(op, ltp, rtp);
3147 const type_t *ltp, tspec_t lt,
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;
3181 if ((lt = (ltp = ln->tn_type)->t_tspec) == PTR)
3182 lst = (lstp = ltp->t_subt)->t_tspec;
3193 return ltp->u.sou == rtp->u.sou;
3198 query_message(15, type_name(ltp));
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);
3290 const tnode_t *ln, const type_t *ltp, tspec_t lt,
3297 return typeok_point(ln, ltp, lt);
3302 return typeok_incdec(op, ln, ltp);
3304 return typeok_indir(ltp, lt);
3306 return typeok_address(op, ln, ltp, lt);
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);
3365 return typeok_assign(op, ln, ltp, lt);
3469 const tnode_t *ln, const type_t *ltp,
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))) {
3492 type_t *ltp = ln->tn_type;
3493 tspec_t lt = ltp->t_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);