aboutsummaryrefslogtreecommitdiff
path: root/stdlib/channels.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/channels.c
parent2ba07c2cf53a765d4decb2cb09dbf5e1e99f1966 (diff)
Rename TypeInfo -> TypeInfo_t and fix up some typeinfo code
Diffstat (limited to 'stdlib/channels.c')
-rw-r--r--stdlib/channels.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/channels.c b/stdlib/channels.c
index 3681b0b8..ac3d697f 100644
--- a/stdlib/channels.c
+++ b/stdlib/channels.c
@@ -99,27 +99,27 @@ public void Channel$clear(Channel_t *channel)
(void)pthread_cond_signal(&channel->cond);
}
-PUREFUNC public uint64_t Channel$hash(Channel_t **channel, const TypeInfo *type)
+PUREFUNC public uint64_t Channel$hash(Channel_t **channel, const TypeInfo_t *type)
{
(void)type;
return siphash24((void*)*channel, sizeof(Channel_t*));
}
-PUREFUNC public int32_t Channel$compare(Channel_t **x, Channel_t **y, const TypeInfo *type)
+PUREFUNC public int32_t Channel$compare(Channel_t **x, Channel_t **y, const TypeInfo_t *type)
{
(void)type;
return (*x > *y) - (*x < *y);
}
-PUREFUNC public bool Channel$equal(Channel_t **x, Channel_t **y, const TypeInfo *type)
+PUREFUNC public bool Channel$equal(Channel_t **x, Channel_t **y, const TypeInfo_t *type)
{
(void)type;
return (*x == *y);
}
-public Text_t Channel$as_text(Channel_t **channel, bool colorize, const TypeInfo *type)
+public Text_t Channel$as_text(Channel_t **channel, bool colorize, const TypeInfo_t *type)
{
- const TypeInfo *item_type = type->ChannelInfo.item;
+ const TypeInfo_t *item_type = type->ChannelInfo.item;
if (!channel) {
Text_t typename = generic_as_text(NULL, false, item_type);
return Text$concat(colorize ? Text("\x1b[34;1m|:") : Text("|:"), typename, colorize ? Text("|\x1b[m") : Text("|"));