Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove type DW_TAG_enumerator type (because it is not a type)
[simgrid.git] / src / include / mc / datatypes.h
index 2d7f1c0..7802ec1 100644 (file)
@@ -42,7 +42,6 @@ void heap_ignore_region_free_voidp(void *r);
 typedef enum{
   e_dw_base_type = 0,
   e_dw_enumeration_type,
-  e_dw_enumerator,
   e_dw_typedef,
   e_dw_const_type,
   e_dw_array_type,
@@ -57,7 +56,8 @@ typedef struct s_dw_type{
   e_dw_type_type type;
   void *id; /* Offset in the section (in hexadecimal form) */
   char *name; /* Name of the type */
-  int size; /* Sometimes it si the byte size, sometimes it is the number of elements */
+  int byte_size; /* Size in bytes */
+  int element_count; /* Number of elements for array type */
   char *dw_type_id; /* DW_AT_type */
   xbt_dynar_t members; /* if DW_TAG_structure_type, DW_TAG_union_type*/
   int is_pointer_type;