diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2026-02-19 23:58:49 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2026-02-19 23:58:49 -0500 |
| commit | b780cff8e43bb9834ecd44f33ae8d33bb8528d82 (patch) | |
| tree | 69067a393b73a29e2e811f782872c48532e987af /src/environment.c | |
| parent | fde2d5876236c9048ee1112be90c8af41c910149 (diff) | |
Code cleanup
Diffstat (limited to 'src/environment.c')
| -rw-r--r-- | src/environment.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/environment.c b/src/environment.c index d209471e..9779fb1c 100644 --- a/src/environment.c +++ b/src/environment.c @@ -67,9 +67,7 @@ env_t *global_env(bool source_mapping) { (void)bind_type(env, "Int", Type(BigIntType)); (void)bind_type(env, "Int32", Type(IntType, .bits = TYPE_IBITS32)); (void)bind_type(env, "Memory", Type(MemoryType)); - PATH_TYPE = declare_type( - env, - "enum Path(AbsolutePath(components:[Text]), RelativePath(components:[Text]), HomePath(components:[Text]))"); + (void)bind_type(env, "Path", Type(PathType)); RESULT_TYPE = declare_type(env, "enum Result(Success, Failure(reason:Text))"); PRESENT_TYPE = declare_type(env, "struct Present()"); @@ -677,6 +675,7 @@ env_t *get_namespace_by_type(env_t *env, type_t *t) { case ListType: return NULL; case TableType: return NULL; case CStringType: + case PathType: case BoolType: case IntType: case BigIntType: |
