From e0a04d4171e03ae64b874b7229d25ce940afa301 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 11 Oct 2025 15:08:32 -0400 Subject: Bugfix for optional paths and converting path type into an actual enum instead of a struct wrapped around an enum --- src/environment.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/environment.c') diff --git a/src/environment.c b/src/environment.c index ea390996..63893788 100644 --- a/src/environment.c +++ b/src/environment.c @@ -290,9 +290,9 @@ env_t *global_env(bool source_mapping) { #undef C MAKE_TYPE( // "PathType", PATH_TYPE_TYPE, Text("PathType_t"), Text("PathType$info"), // - {"Relative", "((PathType_t){.$tag=PATH_RELATIVE})", "PathType"}, // - {"Absolute", "((PathType_t){.$tag=PATH_ABSOLUTE})", "PathType"}, // - {"Home", "((PathType_t){.$tag=PATH_HOME})", "PathType"}), + {"Relative", "PATH_RELATIVE", "PathType"}, // + {"Absolute", "PATH_ABSOLUTE", "PathType"}, // + {"Home", "PATH_HOME", "PathType"}), MAKE_TYPE( // "Path", PATH_TYPE, Text("Path_t"), Text("Path$info"), // {"accessed", "Path$accessed", "func(path:Path, follow_symlinks=yes -> Int64?)"}, // -- cgit v1.2.3