summaryrefslogtreecommitdiff
path: root/cgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgen.c')
-rw-r--r--cgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgen.c b/cgen.c
index 2cb7dcb..9337ad7 100644
--- a/cgen.c
+++ b/cgen.c
@@ -159,7 +159,7 @@ static bool cgen_fns_in_stmt(CGenerator *g, Statement *s) {
static bool cgen_file(CGenerator *g, ParsedFile *f) {
cgen_write_line_comment(g, "toc");
bool ret = true;
- if (!cgen_types(g, f)) return false;
+ if (!cgen_decls_file(g, f)) return false;
arr_foreach(&f->stmts, Statement, s) {
if (!cgen_fns_in_stmt(g, s)) return false;
}