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 /stdlib/types.c | |
| parent | 2ba07c2cf53a765d4decb2cb09dbf5e1e99f1966 (diff) | |
Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code
Diffstat (limited to 'stdlib/types.c')
| -rw-r--r-- | stdlib/types.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/stdlib/types.c b/stdlib/types.c index c9f2578f..ebc91563 100644 --- a/stdlib/types.c +++ b/stdlib/types.c @@ -12,9 +12,9 @@ #include "text.h" #include "types.h" -public Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo *type) +public Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo_t *type) { - if (!typeinfo) return Text("TypeInfo"); + if (!typeinfo) return Text("TypeInfo_t"); if (colorize) return Text$concat( @@ -25,14 +25,7 @@ public Text_t Type$as_text(const void *typeinfo, bool colorize, const TypeInfo * return Text$from_str(type->TypeInfoInfo.type_str); } -public const TypeInfo TypeInfo$info = { - .size=sizeof(TypeInfo), - .align=__alignof__(TypeInfo), - .tag=CustomInfo, - .TypeInfoInfo.type_str="TypeInfo", -}; - -public const TypeInfo Void$info = {.size=0, .align=0, .tag=EmptyStructInfo}; -public const TypeInfo Abort$info = {.size=0, .align=0, .tag=EmptyStructInfo}; +public const TypeInfo_t Void$info = {.size=0, .align=0, .tag=EmptyStructInfo}; +public const TypeInfo_t Abort$info = {.size=0, .align=0, .tag=EmptyStructInfo}; // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
