summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3f903d4..f2e160f 100644
--- a/main.c
+++ b/main.c
@@ -60,7 +60,7 @@ int main(int argc, char **argv) {
FILE *out = fopen(out_filename, "w");
CGenerator cgen;
cgen_create(&cgen, out);
- if (!file_cgen(&f, &cgen)) {
+ if (!cgen_file(&cgen, &f)) {
err_fprint(TEXT_IMPORTANT("Errors occured while generating C code.\n"));
return EXIT_FAILURE;
}