Lines Matching refs:base_type

68 	struct symbol *base_type;  in evaluate_symbol_expression()  local
77 base_type = get_base_type(sym); in evaluate_symbol_expression()
78 if (!base_type) { in evaluate_symbol_expression()
111 sym->ctype.base_type = array; in evaluate_string()
121 array->ctype.base_type = &char_ctype; in evaluate_string()
146 type = type->ctype.base_type; in integer_promotion()
213 static struct symbol *base_type(struct symbol *node, unsigned long *modp, struct ident **asp) in base_type() function
222 node = node->ctype.base_type; in base_type()
238 old = base_type(old, &oldmod, &oldas); in is_same_type()
239 new = base_type(new, &newmod, &newas); in is_same_type()
278 typea = typea->ctype.base_type; in warn_for_different_enum_types()
280 typeb = typeb->ctype.base_type; in warn_for_different_enum_types()
380 type = type->ctype.base_type; in classify_type()
386 type = type->ctype.base_type; in classify_type()
389 type = type->ctype.base_type; in classify_type()
392 if (type->ctype.base_type == &int_type) in classify_type()
394 if (type->ctype.base_type == &fp_type) in classify_type()
405 type = type->ctype.base_type; in is_string_type()
406 return type->type == SYM_ARRAY && is_byte_type(type->ctype.base_type); in is_string_type()
479 return type->ctype.base_type; in unfoul()
535 *ctype = (*ctype)->ctype.base_type; /* get to arithmetic type */ in unrestrict()
667 struct symbol *t1 = c1->base_type; in type_difference()
668 struct symbol *t2 = c2->base_type; in type_difference()
675 struct symbol *base1 = t1->ctype.base_type; in type_difference()
676 struct symbol *base2 = t2->ctype.base_type; in type_difference()
830 if (type->ctype.base_type && type->ctype.base_type->type == SYM_ARRAY) in target_qualifiers()
1421 show_typename(s->ctype.base_type)); in check_assignment_types()
1623 ptr->ctype.base_type = arg; in examine_fn_arguments()
1627 s->ctype.base_type = ptr; in examine_fn_arguments()
1661 node->ctype.base_type = ptr; in create_pointer()
1676 sym = sym->ctype.base_type; in create_pointer()
1681 sym = sym->ctype.base_type; in create_pointer()
1683 ptr->ctype.base_type = sym; in create_pointer()
1700 base = ctype->ctype.base_type; in degenerate()
1714 a->ctype.base_type = expr->base->ctype; in degenerate()
1813 ctype = ctype->ctype.base_type; in evaluate_dereference()
1815 target = ctype->ctype.base_type; in evaluate_dereference()
1978 show_typename(ctype->ctype.base_type)); in evaluate_preop()
2008 struct symbol *ctype = sym->ctype.base_type; in find_identifier()
2081 ctype = ctype->ctype.base_type; in evaluate_member_dereference()
2225 if (is_function(type->ctype.base_type)) { in evaluate_sizeof()
2233 struct symbol *base_type; in evaluate_sizeof() local
2236 type = type->ctype.base_type; // strip the SYM_NODE in evaluate_sizeof()
2237 base_type = get_base_type(type); in evaluate_sizeof()
2238 if (!base_type) in evaluate_sizeof()
2240 if (base_type->bit_size <= 0) { in evaluate_sizeof()
2242 base->cast_type = base_type; in evaluate_sizeof()
2247 base->value = bits_to_bytes(base_type->bit_size); in evaluate_sizeof()
2283 type = type->ctype.base_type; in evaluate_ptrsizeof()
2417 ctype = ctype->ctype.base_type; in first_subobject()
2424 new->ctype = ctype->ctype.base_type; in first_subobject()
2454 ctype = ctype->ctype.base_type; in check_designators()
2461 type = ctype->ctype.base_type; in check_designators()
2617 struct_sym = ctype->type == SYM_NODE ? ctype->ctype.base_type : ctype; in handle_list_initializer()
2815 ctype = ctype->ctype.base_type; in handle_initializer()
2817 type = type->ctype.base_type; in handle_initializer()
3043 if (ttype->ctype.base_type == &void_ctype) { in evaluate_cast()
3059 tclass = classify_type(ttype->ctype.base_type, &ttype); in evaluate_cast()
3060 sclass = classify_type(stype->ctype.base_type, &stype); in evaluate_cast()
3103 current_fn = ctype->ctype.base_type; in evaluate_symbol_call()
3126 ctype = ctype->ctype.base_type; in evaluate_call()
3162 expr->ctype = ctype->ctype.base_type; in evaluate_call()
3212 ctype = ctype->ctype.base_type; in evaluate_offsetof()
3404 struct symbol *base_type; in evaluate_symbol() local
3413 base_type = get_base_type(sym); in evaluate_symbol()
3414 if (!base_type) in evaluate_symbol()
3422 if (base_type->type == SYM_FN) { in evaluate_symbol()
3428 current_fn = base_type; in evaluate_symbol()
3430 examine_fn_arguments(base_type); in evaluate_symbol()
3431 if (!base_type->stmt && base_type->inline_stmt) in evaluate_symbol()
3433 if (base_type->stmt) in evaluate_symbol()
3434 evaluate_statement(base_type->stmt); in evaluate_symbol()
3439 return base_type; in evaluate_symbol()
3459 fntype = current_fn->ctype.base_type; in evaluate_return_expression()