diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-19 23:29:32 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-19 23:29:32 -0400 |
| commit | a47bd2d569e24b74bbb925b934bc835b4eea4de9 (patch) | |
| tree | e692a68f65b428aef889b9992473b0a7c1bc9314 /parse.c | |
| parent | 80ea0f85079eaac027b930b7d54df46e2039e7c3 (diff) | |
Improvements to module imports
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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) { |
