adapt preprocessor to coding standards
[cparser] / type.c
diff --git a/type.c b/type.c
index de51f29..df0b759 100644 (file)
--- a/type.c
+++ b/type.c
@@ -67,6 +67,7 @@ static size_t get_type_struct_size(type_kind_t kind)
                [TYPE_ENUM]            = sizeof(enum_type_t),
                [TYPE_FUNCTION]        = sizeof(function_type_t),
                [TYPE_POINTER]         = sizeof(pointer_type_t),
+               [TYPE_REFERENCE]       = sizeof(reference_type_t),
                [TYPE_ARRAY]           = sizeof(array_type_t),
                [TYPE_TYPEDEF]         = sizeof(typedef_type_t),
                [TYPE_TYPEOF]          = sizeof(typeof_type_t),
@@ -573,9 +574,6 @@ void print_enum_definition(const enum_t *enume)
 
                        /* skip the implicit cast */
                        expression_t *expression = entry->enum_value.value;
-                       if (expression->kind == EXPR_UNARY_CAST_IMPLICIT) {
-                               expression = expression->unary.value;
-                       }
                        print_expression(expression);
                }
                print_string(",\n");