diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-06 14:50:48 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-06 14:50:48 -0400 |
| commit | fba8c90687f92b609a902622f5b60203e87ec067 (patch) | |
| tree | 29ad131651f2d2086bb9961ae38c66d455980f13 | |
| parent | 4291b36e2c6ad65e14d775fcb34077dccb415edc (diff) | |
Fix partial edit
| -rw-r--r-- | examples/vectors.tm | 2 | ||||
| -rw-r--r-- | 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 @@ -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)); |
