From f51acef40e8297d7bd41b774413aa8331ca946ed Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 15 Mar 2025 14:22:11 -0400 Subject: Overhaul of Path so it uses root and array of components instead of stringly typed --- types.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'types.c') diff --git a/types.c b/types.c index 358a729e..eaecad2f 100644 --- a/types.c +++ b/types.c @@ -494,6 +494,7 @@ PUREFUNC size_t unpadded_struct_size(type_t *t) PUREFUNC size_t type_size(type_t *t) { if (t == THREAD_TYPE) return sizeof(pthread_t*); + if (t == PATH_TYPE) return sizeof(Path_t); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wswitch-default" switch (t->tag) { @@ -579,6 +580,7 @@ PUREFUNC size_t type_size(type_t *t) PUREFUNC size_t type_align(type_t *t) { if (t == THREAD_TYPE) return __alignof__(pthread_t*); + if (t == PATH_TYPE) return __alignof__(Path_t); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wswitch-default" switch (t->tag) { -- cgit v1.2.3