From fba8c90687f92b609a902622f5b60203e87ec067 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 6 Sep 2024 14:50:48 -0400 Subject: Fix partial edit --- examples/vectors.tm | 2 -- tomo.c | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/vectors.tm b/examples/vectors.tm index 64aa3295..cee0f305 100644 --- a/examples/vectors.tm +++ b/examples/vectors.tm @@ -94,6 +94,4 @@ func main(): = Vec2(x=110, y=120) >> Vec3(10, 20, 30) >> Vec2.ZERO - >> Vec2.ZERO.x = 99 - >> Vec2.ZERO 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)); -- cgit v1.2.3