From a47bd2d569e24b74bbb925b934bc835b4eea4de9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 19 Mar 2024 23:29:32 -0400 Subject: Improvements to module imports --- parse.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'parse.c') 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) { -- cgit v1.2.3