aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-19 23:29:32 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-19 23:29:32 -0400
commita47bd2d569e24b74bbb925b934bc835b4eea4de9 (patch)
treee692a68f65b428aef889b9992473b0a7c1bc9314 /parse.c
parent80ea0f85079eaac027b930b7d54df46e2039e7c3 (diff)
Improvements to module imports
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/parse.c b/parse.c
index 426f5cae..60707613 100644
--- a/parse.c
+++ b/parse.c
@@ -1871,11 +1871,8 @@ PARSER(parse_use) {
parser_err(ctx, start, pos, "There is no filename here to use");
char *path = heap_strf("%.*s.tm", (int)path_len, pos);
pos += path_len;
- char *resolved_path = resolve_path(path, ctx->file->filename, getenv("USE_PATH"));
- if (!resolved_path)
- parser_err(ctx, start, pos, "No such file exists: \"%s\"", path);
while (match(&pos, ";")) continue;
- return NewAST(ctx->file, start, pos, Use, .path=resolved_path);
+ return NewAST(ctx->file, start, pos, Use, .raw_path=path);
}
PARSER(parse_linker) {