changed new_type_pointer() to new semantic
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 12 Aug 2005 10:28:51 +0000 (10:28 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 12 Aug 2005 10:28:51 +0000 (10:28 +0000)
[r6413]

testprograms/call_str_example.c
testprograms/const_ent_example.c
testprograms/oo_inline_example.c
testprograms/oo_program_example.c

index 876f375..c35c3a7 100644 (file)
@@ -51,7 +51,7 @@ int main(int argc, char **argv)
   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);
index 4c59d89..ad8801c 100644 (file)
@@ -78,7 +78,7 @@ int main(int argc, char **argv)
   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);
index a3c952f..f2b7fd6 100644 (file)
@@ -75,7 +75,7 @@ main(void)
   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);
index b0010de..6112dce 100644 (file)
@@ -73,7 +73,7 @@ main(void)
   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);