diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-30 14:39:30 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-30 14:39:30 -0400 |
| commit | 1a6ce0047bbc5125c386f65ae348688f98a9bb3f (patch) | |
| tree | ee56e2b3535ddcbc36fab5240d804d95f7744b5f /types.c | |
| parent | 2ba07c2cf53a765d4decb2cb09dbf5e1e99f1966 (diff) | |
Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code
Diffstat (limited to 'types.c')
| -rw-r--r-- | types.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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"); |
