diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-18 17:00:30 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-18 17:00:30 -0400 |
| commit | 6086b2dbda874d5538e878101c7ee98a10fdeddb (patch) | |
| tree | 9e96e8e279a433cc5484358f10b15f87634463f9 /types.c | |
| parent | bc054ab6c6b6974c315cce21abb3405e443acd3e (diff) | |
Expose PathType as a proper enum
Diffstat (limited to 'types.c')
| -rw-r--r-- | types.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -497,6 +497,7 @@ PUREFUNC size_t type_size(type_t *t) { if (t == THREAD_TYPE) return sizeof(pthread_t*); if (t == PATH_TYPE) return sizeof(Path_t); + if (t == PATH_TYPE_TYPE) return sizeof(PathType_t); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wswitch-default" switch (t->tag) { @@ -585,6 +586,7 @@ PUREFUNC size_t type_align(type_t *t) { if (t == THREAD_TYPE) return __alignof__(pthread_t*); if (t == PATH_TYPE) return __alignof__(Path_t); + if (t == PATH_TYPE_TYPE) return __alignof__(PathType_t); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wswitch-default" switch (t->tag) { |
