Reformat intern_print_type_pre() for better readability.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 14 Jun 2012 08:07:29 +0000 (10:07 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 14 Jun 2012 08:38:12 +0000 (10:38 +0200)
type.c

diff --git a/type.c b/type.c
index e1c9d76..1c66455 100644 (file)
--- a/type.c
+++ b/type.c
@@ -636,43 +636,19 @@ static void print_typeof_type_pre(const typeof_type_t *const type)
 static void intern_print_type_pre(const type_t *const type)
 {
        switch(type->kind) {
-       case TYPE_ERROR:
-               print_string("<error>");
-               return;
-       case TYPE_ENUM:
-               print_type_enum(&type->enumt);
-               return;
-       case TYPE_ATOMIC:
-               print_atomic_type(&type->atomic);
-               return;
-       case TYPE_COMPLEX:
-               print_complex_type(&type->atomic);
-               return;
-       case TYPE_IMAGINARY:
-               print_imaginary_type(&type->atomic);
-               return;
+       case TYPE_ARRAY:           print_array_type_pre(    &type->array);     return;
+       case TYPE_ATOMIC:          print_atomic_type(       &type->atomic);    return;
+       case TYPE_COMPLEX:         print_complex_type(      &type->atomic);    return;
        case TYPE_COMPOUND_STRUCT:
-       case TYPE_COMPOUND_UNION:
-               print_compound_type(&type->compound);
-               return;
-       case TYPE_FUNCTION:
-               print_function_type_pre(&type->function);
-               return;
-       case TYPE_POINTER:
-               print_pointer_type_pre(&type->pointer);
-               return;
-       case TYPE_REFERENCE:
-               print_reference_type_pre(&type->reference);
-               return;
-       case TYPE_ARRAY:
-               print_array_type_pre(&type->array);
-               return;
-       case TYPE_TYPEDEF:
-               print_typedef_type_pre(&type->typedeft);
-               return;
-       case TYPE_TYPEOF:
-               print_typeof_type_pre(&type->typeoft);
-               return;
+       case TYPE_COMPOUND_UNION:  print_compound_type(     &type->compound);  return;
+       case TYPE_ENUM:            print_type_enum(         &type->enumt);     return;
+       case TYPE_ERROR:           print_string("<error>");                    return;
+       case TYPE_FUNCTION:        print_function_type_pre( &type->function);  return;
+       case TYPE_IMAGINARY:       print_imaginary_type(    &type->atomic);    return;
+       case TYPE_POINTER:         print_pointer_type_pre(  &type->pointer);   return;
+       case TYPE_REFERENCE:       print_reference_type_pre(&type->reference); return;
+       case TYPE_TYPEDEF:         print_typedef_type_pre(  &type->typedeft);  return;
+       case TYPE_TYPEOF:          print_typeof_type_pre(   &type->typeoft);   return;
        }
        print_string("unknown");
 }