aboutsummaryrefslogtreecommitdiff
path: root/stdlib/threads.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-30 14:39:30 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-30 14:39:30 -0400
commit1a6ce0047bbc5125c386f65ae348688f98a9bb3f (patch)
treeee56e2b3535ddcbc36fab5240d804d95f7744b5f /stdlib/threads.c
parent2ba07c2cf53a765d4decb2cb09dbf5e1e99f1966 (diff)
Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code
Diffstat (limited to 'stdlib/threads.c')
-rw-r--r--stdlib/threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/threads.c b/stdlib/threads.c
index 59e98dd7..bd9f017e 100644
--- a/stdlib/threads.c
+++ b/stdlib/threads.c
@@ -38,7 +38,7 @@ public void Thread$detach(Thread_t thread)
pthread_detach(*thread);
}
-Text_t Thread$as_text(const Thread_t *thread, bool colorize, const TypeInfo *type)
+Text_t Thread$as_text(const Thread_t *thread, bool colorize, const TypeInfo_t *type)
{
(void)type;
if (!thread) {
@@ -47,7 +47,7 @@ Text_t Thread$as_text(const Thread_t *thread, bool colorize, const TypeInfo *typ
return Text$format(colorize ? "\x1b[34;1mThread(%p)\x1b[m" : "Thread(%p)", *thread);
}
-public const TypeInfo Thread$info = {
+public const TypeInfo_t Thread$info = {
.size=sizeof(Thread_t), .align=__alignof(Thread_t),
.tag=CustomInfo,
.CustomInfo={.as_text=(void*)Thread$as_text},