aboutsummaryrefslogtreecommitdiff
path: root/src/compile/headers.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-21 15:57:21 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-21 15:57:21 -0500
commit13c430fde1388703aa002fdb203548801082d4e3 (patch)
tree236718203fa84bcf78b755bf8ec3b69a1da716ad /src/compile/headers.c
parent86a08a38a8a60b6a0de0da62a5d3fa843f6db71f (diff)
parent434ffd71c9a7eebd46ec0cba1d97b0827b874901 (diff)
Merge branch 'dev'
Diffstat (limited to 'src/compile/headers.c')
-rw-r--r--src/compile/headers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile/headers.c b/src/compile/headers.c
index e90556a1..df7142d1 100644
--- a/src/compile/headers.c
+++ b/src/compile/headers.c
@@ -135,7 +135,7 @@ Text_t compile_file_header(env_t *env, Path_t header_path, ast_t *ast) {
Text_t header =
Texts("#pragma once\n",
env->do_source_mapping ? Texts("#line 1 ", quoted_str(ast->file->filename), "\n") : EMPTY_TEXT,
- "#include <tomo@" TOMO_VERSION "/tomo.h>\n");
+ "#include <tomo@", TOMO_VERSION, "/tomo.h>\n");
compile_typedef_info_t info = {.env = env, .header = &header, .header_path = header_path};
visit_topologically(Match(ast, Block)->statements, (Closure_t){.fn = (void *)_make_typedefs, &info});
@@ -161,7 +161,7 @@ Text_t compile_statement_type_header(env_t *env, Path_t header_path, ast_t *ast)
module_info_t mod = get_used_module_info(ast);
glob_t tm_files;
const char *folder = mod.version ? String(mod.name, "@", mod.version) : mod.name;
- if (glob(String(TOMO_PATH, "/lib/tomo@" TOMO_VERSION "/", folder, "/[!._0-9]*.tm"), GLOB_TILDE, NULL,
+ if (glob(String(TOMO_PATH, "/lib/tomo@", TOMO_VERSION, "/", folder, "/[!._0-9]*.tm"), GLOB_TILDE, NULL,
&tm_files)
!= 0) {
if (!try_install_module(mod, true)) code_err(ast, "Could not find library");