Handle __attribute__((unused)).
[cparser] / write_fluffy.c
index 8dda537..5379aee 100644 (file)
@@ -177,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;
@@ -332,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 */