aboutsummaryrefslogtreecommitdiff
path: root/tomo.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-06 14:50:48 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-06 14:50:48 -0400
commitfba8c90687f92b609a902622f5b60203e87ec067 (patch)
tree29ad131651f2d2086bb9961ae38c66d455980f13 /tomo.c
parent4291b36e2c6ad65e14d775fcb34077dccb415edc (diff)
Fix partial edit
Diffstat (limited to 'tomo.c')
-rw-r--r--tomo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tomo.c b/tomo.c
index 5a2216a8..ac3b828d 100644
--- a/tomo.c
+++ b/tomo.c
@@ -213,11 +213,11 @@ int main(int argc, char *argv[])
if (!ast) errx(1, "Could not parse file %s", filename);
env_t *module_env = load_module_env(env, ast);
for (ast_list_t *stmt = Match(ast, Block)->statements; stmt; stmt = stmt->next) {
- CORD h = compile_statement_typedefs(&module_env, stmt->ast);
+ CORD h = compile_statement_typedefs(module_env, stmt->ast);
if (h) CORD_put(h, header_prog);
}
for (ast_list_t *stmt = Match(ast, Block)->statements; stmt; stmt = stmt->next) {
- CORD h = compile_statement_definitions(&module_env, stmt->ast);
+ CORD h = compile_statement_definitions(module_env, stmt->ast);
if (h) CORD_put(h, header_prog);
}
fprintf(header_prog, "void %s$%s$$initialize(void);\n", libname, file_base_name(filename));