diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-11 15:08:32 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-11 15:08:32 -0400 |
| commit | e0a04d4171e03ae64b874b7229d25ce940afa301 (patch) | |
| tree | 930830d645138e25d07d91313c5d723396169b3b /src/environment.c | |
| parent | 5b2acc934ee1cda4a514b617a56b43fc4ddf6a0f (diff) | |
Bugfix for optional paths and converting path type into an actual enum
instead of a struct wrapped around an enum
Diffstat (limited to 'src/environment.c')
| -rw-r--r-- | src/environment.c | 6 |
1 files changed, 3 insertions, 3 deletions
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?)"}, // |
