X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=wrappergen%2Fwrite_fluffy.c;h=ddf940f0b9b4ec8419a387c4f3e297dd0fc33437;hb=6405da9f810302a2b2799968a5891184a8a578fa;hp=f1a402199c9cc9c12259ef7328d1b4ad8c46e10b;hpb=fbbb2b6932bdd8455b850b750d93b4d5584402a7;p=cparser diff --git a/wrappergen/write_fluffy.c b/wrappergen/write_fluffy.c index f1a4021..ddf940f 100644 --- a/wrappergen/write_fluffy.c +++ b/wrappergen/write_fluffy.c @@ -173,8 +173,6 @@ static void write_type(const type_t *type) case TYPE_FUNCTION: write_function_type(&type->function); return; - case TYPE_INVALID: - panic("invalid type found"); case TYPE_COMPLEX: case TYPE_IMAGINARY: default: @@ -227,7 +225,7 @@ static void write_expression(const expression_t *expression) case EXPR_LITERAL_INTEGER: fprintf(out, "%s", expression->literal.value.begin); break; - EXPR_UNARY_CASES + case EXPR_UNARY_CASES: write_unary_expression((const unary_expression_t*) expression); break; default: @@ -299,7 +297,7 @@ static void write_function(const entity_t *entity) fprintf(out, ")"); const type_t *return_type = skip_typeref(function_type->return_type); - if(!is_type_atomic(return_type, ATOMIC_TYPE_VOID)) { + if (!is_type_void(return_type)) { fprintf(out, " : "); write_type(return_type); }