From 1a6ce0047bbc5125c386f65ae348688f98a9bb3f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 30 Sep 2024 14:39:30 -0400 Subject: Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code --- types.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'types.c') diff --git a/types.c b/types.c index 024e4289..24f64e89 100644 --- a/types.c +++ b/types.c @@ -80,7 +80,7 @@ CORD type_to_cord(type_t *t) { return CORD_all(type_to_cord(Match(t, OptionalType)->type), "?"); } case TypeInfoType: { - return CORD_all("TypeInfo(", Match(t, TypeInfoType)->name, ")"); + return CORD_all("Type$info(", Match(t, TypeInfoType)->name, ")"); } case ModuleType: { return CORD_all("Module(", Match(t, ModuleType)->name, ")"); @@ -472,7 +472,7 @@ PUREFUNC size_t type_size(type_t *t) size += max_size; return size; } - case TypeInfoType: return sizeof(TypeInfo); + case TypeInfoType: return sizeof(TypeInfo_t); case ModuleType: return 0; } errx(1, "This should not be reachable"); @@ -538,7 +538,7 @@ PUREFUNC size_t type_align(type_t *t) } return align; } - case TypeInfoType: return __alignof__(TypeInfo); + case TypeInfoType: return __alignof__(TypeInfo_t); case ModuleType: return 0; } errx(1, "This should not be reachable"); -- cgit v1.2.3