From b780cff8e43bb9834ecd44f33ae8d33bb8528d82 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 19 Feb 2026 23:58:49 -0500 Subject: Code cleanup --- src/environment.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/environment.c') 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: -- cgit v1.2.3