projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for gcc nested functions
[cparser]
/
write_fluffy.c
diff --git
a/write_fluffy.c
b/write_fluffy.c
index
8dda537
..
5379aee
100644
(file)
--- a/
write_fluffy.c
+++ b/
write_fluffy.c
@@
-177,6
+177,8
@@
static void write_type(const type_t *type)
case TYPE_INVALID:
panic("invalid type found");
break;
case TYPE_INVALID:
panic("invalid type found");
break;
+ case TYPE_COMPLEX:
+ case TYPE_IMAGINARY:
default:
fprintf(out, "/* TODO type */");
break;
default:
fprintf(out, "/* TODO type */");
break;
@@
-332,6
+334,7
@@
void write_fluffy_decls(FILE *output, const translation_unit_t *unit)
global_scope = &unit->scope;
ast_set_output(out);
global_scope = &unit->scope;
ast_set_output(out);
+ type_set_output(out);
fprintf(out, "/* WARNING: Automatically generated file */\n");
/* write structs,unions + enums */
fprintf(out, "/* WARNING: Automatically generated file */\n");
/* write structs,unions + enums */