- add FE support for MS _AddressOfReturnAddress()
[cparser] / type_t.h
index 63d7300..b4f9220 100644 (file)
--- a/type_t.h
+++ b/type_t.h
@@ -92,7 +92,7 @@ struct builtin_type_t {
 struct pointer_type_t {
        type_base_t  base;
        type_t      *points_to;
-       variable_t  *base_variable;  /**< Microsoft __based() extension */
+       variable_t  *base_variable;  /**< Microsoft __based() extension: base variable or NULL. */
 };
 
 struct reference_type_t {
@@ -162,11 +162,12 @@ struct compound_type_t {
 };
 
 struct enum_type_t {
-       type_base_t     base;
+       type_base_t         base;
+       atomic_type_kind_t  akind; /**< underlying atomic type */
        /** the enum entity. You can find the enum entries by walking the
         *  enum->base.next list until you don't find ENTITY_ENUM_VALUE entities
         *  anymore */
-       enum_t         *enume;
+       enum_t             *enume;
 };
 
 struct typedef_type_t {
@@ -218,6 +219,7 @@ type_t *make_array_type(type_t *element_type, size_t size,
                         type_qualifiers_t qualifiers);
 
 type_t *duplicate_type(const type_t *type);
+type_t *identify_new_type(type_t *type);
 
 static inline bool is_typeref(const type_t *type)
 {