summaryrefslogtreecommitdiff
path: root/typedefs_cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'typedefs_cgen.c')
-rw-r--r--typedefs_cgen.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/typedefs_cgen.c b/typedefs_cgen.c
index 9da3121..8c2d627 100644
--- a/typedefs_cgen.c
+++ b/typedefs_cgen.c
@@ -4,7 +4,6 @@ static bool typedefs_expr(CGenerator *g, Expression *e);
static bool typedefs_block(CGenerator *g, Block *b) {
Block *prev = g->block;
- printf("%s\n",b->stmts[0].where.code);
if (!cgen_block_enter(g, b))
return false;
arr_foreach(b->stmts, Statement, s)
@@ -85,10 +84,8 @@ static bool typedefs_decl(CGenerator *g, Declaration *d) {
}
}
if (d->flags & DECL_HAS_EXPR) {
- if (!(d->flags & DECL_IS_CONST) || d->expr.kind == EXPR_FN) {
- if (!typedefs_expr(g, &d->expr))
- return false;
- }
+ if (!typedefs_expr(g, &d->expr))
+ return false;
}
return true;
}