Lines Matching defs:ltp
150 * Test whether rn is a string literal that can initialize ltp.
157 can_init_character_array(const type_t *ltp, const tnode_t *rn)
160 if (!(ltp != NULL && ltp->t_tspec == ARRAY && rn->tn_op == STRING))
163 tspec_t lst = ltp->t_subt->t_tspec;
246 check_init_expr(const type_t *ltp, sym_t *lsym, tnode_t *rn)
249 type_t *lutp = expr_unqualified_type(ltp);
273 if (lt != rt || (ltp->t_bitfield && rn->tn_op == CON))
274 rn = convert(INIT, 0, unconst_cast(ltp), rn);
585 const type_t *ltp = brace_level_sub_type(bl);
586 if (types_compatible(ltp, rn->tn_type, true, false, NULL))
589 if (is_struct_or_union(ltp->t_tspec) || ltp->t_tspec == ARRAY) {
590 if (can_init_character_array(ltp, rn))
592 if (!designation_descend(dn, ltp))