struct type *ntype; /* New type */
struct type *chain;
- ntype = TYPE_POINTER_TYPE (type);
+ ntype = type->pointer_type;
if (ntype)
return ntype;
ntype = type_allocator (type).new_type ();
ntype->set_target_type (type);
- TYPE_POINTER_TYPE (type) = ntype;
+ type->pointer_type = ntype;
/* FIXME! Assumes the machine has only one representation for pointers! */
/* Pointers or references to the original type are not relevant to
the new type. */
- TYPE_POINTER_TYPE (ntype) = (struct type *) 0;
+ ntype->pointer_type = (struct type *) 0;
TYPE_REFERENCE_TYPE (ntype) = (struct type *) 0;
/* Chain the new qualified type to the old type. */
recursive_dump_type (type->target_type (), spaces + 2);
}
gdb_printf ("%*spointer_type %s\n", spaces, "",
- host_address_to_string (TYPE_POINTER_TYPE (type)));
+ host_address_to_string (type->pointer_type));
gdb_printf ("%*sreference_type %s\n", spaces, "",
host_address_to_string (TYPE_REFERENCE_TYPE (type)));
gdb_printf ("%*stype_chain %s\n", spaces, "",
(TYPE_SPECIFIC_FIELD (type) = TYPE_SPECIFIC_FIXED_POINT, \
allocate_fixed_point_type_info (type))
-#define TYPE_POINTER_TYPE(thistype) (thistype)->pointer_type
#define TYPE_REFERENCE_TYPE(thistype) (thistype)->reference_type
#define TYPE_RVALUE_REFERENCE_TYPE(thistype) (thistype)->rvalue_reference_type
#define TYPE_CHAIN(thistype) (thistype)->chain
exp : '@' exp %prec UNARY
{ pstate->wrap<unop_addr_operation> ();
if (current_type)
- current_type = TYPE_POINTER_TYPE (current_type); }
+ current_type = current_type->pointer_type; }
;
exp : '-' exp %prec UNARY