Do not warn, that a second extern declaration for a function is redundant, if it...
[cparser] / write_fluffy.c
index dcdb2d9..5379aee 100644 (file)
@@ -23,6 +23,7 @@
 #include <string.h>
 
 #include "write_fluffy.h"
+#include "symbol_t.h"
 #include "ast_t.h"
 #include "type_t.h"
 #include "type.h"
@@ -176,6 +177,8 @@ static void write_type(const type_t *type)
        case TYPE_INVALID:
                panic("invalid type found");
                break;
+       case TYPE_COMPLEX:
+       case TYPE_IMAGINARY:
        default:
                fprintf(out, "/* TODO type */");
                break;
@@ -331,6 +334,7 @@ void write_fluffy_decls(FILE *output, const translation_unit_t *unit)
        global_scope = &unit->scope;
 
        ast_set_output(out);
+       type_set_output(out);
        fprintf(out, "/* WARNING: Automatically generated file */\n");
 
        /* write structs,unions + enums */