X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=write_fluffy.c;h=5379aee2de6901fc7793ba401a2154669b6cbb31;hb=de8b5458c2ecf2bdc87ed001dbfcb1211d1de240;hp=dcdb2d9fde939393465dc44d2f3c4a4eaf75f1a8;hpb=fd16b92f058181088a385c3224c8814831c006d3;p=cparser diff --git a/write_fluffy.c b/write_fluffy.c index dcdb2d9..5379aee 100644 --- a/write_fluffy.c +++ b/write_fluffy.c @@ -23,6 +23,7 @@ #include #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 */