X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=wrappergen%2Fwrite_fluffy.c;h=05763d44dc80ad815b9f45c9492e6970d12d4080;hb=fc4c19932ddbc935a3f601490c38bcfe62ab5a0d;hp=236e625dfe200e22cdb3fe1b83606665edc7dfab;hpb=1b580cf22ca849edc62afa24304ff0432954877a;p=cparser diff --git a/wrappergen/write_fluffy.c b/wrappergen/write_fluffy.c index 236e625..05763d4 100644 --- a/wrappergen/write_fluffy.c +++ b/wrappergen/write_fluffy.c @@ -223,16 +223,9 @@ static void write_unary_expression(const unary_expression_t *expression) static void write_expression(const expression_t *expression) { - const const_expression_t *constant; - /* TODO */ switch(expression->kind) { - case EXPR_CONST: - constant = &expression->conste; - if(is_type_integer(expression->base.type)) { - fprintf(out, "%lld", constant->v.int_value); - } else { - fprintf(out, "%Lf", constant->v.float_value); - } + case EXPR_LITERAL_INTEGER: + fprintf(out, "%s", expression->literal.value.begin); break; EXPR_UNARY_CASES write_unary_expression((const unary_expression_t*) expression);