U8 = new_type_primitive (new_id_from_chars("char", 4), mode_Bu);
/* An array containing unsigned 8 bit elements. */
U8array = new_type_array (new_id_from_chars("char_arr", 8), 1, U8);
- string_ptr = new_type_pointer (new_id_from_chars ("ptr_to_string", 13), U8array);
+ string_ptr = new_type_pointer (new_id_from_chars ("ptr_to_string", 13), U8array, mode_P);
/* Make a global entity that represents the constant String. */
const_str = new_entity(get_glob_type(), new_id_from_str("constStr"), U8array);
gt = new_type_method(gti, 1, 0); /* 1 parameter, 0 results */
/* Compiler defined types: dispatch table and pointer to it */
diptt = new_type_class(dipti);
- diptpt = new_type_pointer(diptpi, diptt);
+ diptpt = new_type_pointer(diptpi, diptt, mode_P);
/** add structure to type graph **/
/* parameters of methods */
set_method_param_type(gt, 0, intt);
class_prima = new_type_class(new_id_from_str ("PRIMA_INLINE"));
/* We need type information for pointers to the class: */
class_p_ptr = new_type_pointer (new_id_from_chars ("class_prima_ptr", 15),
- class_prima);
+ class_prima, mode_P);
/* An entity for the field (a). The entity constructor automatically adds
the entity as member of the owner. */
a_e = new_entity(class_prima, new_id_from_chars ("a", 1), prim_t_int);
class_prima = new_type_class(new_id_from_chars ("PRIMA", 5));
/* We need type information for pointers to the class: */
class_p_ptr = new_type_pointer (new_id_from_chars("class_prima_ptr", 15),
- class_prima);
+ class_prima, mode_P);
/* An entity for the field (a). The entity constructor automatically adds
the entity as member of the owner. */
a_e = new_entity(class_prima, new_id_from_chars ("a", 1), prim_t_int);