diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 13:57:21 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-11 13:57:21 -0400 |
| commit | 273e2f995f1d74e9ef8e9a2e09a3ea2c2b16d839 (patch) | |
| tree | f82e1af4b53232fc2ddc61d8bbfc0724c012e126 /builtins/functions.c | |
| parent | 75fbaa79bc88abe8868cb4508e9ab9390cb7b329 (diff) | |
Rename channel_t -> Channel_t for consistency
Diffstat (limited to 'builtins/functions.c')
| -rw-r--r-- | builtins/functions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/builtins/functions.c b/builtins/functions.c index 3e6a7eb0..51d0d189 100644 --- a/builtins/functions.c +++ b/builtins/functions.c @@ -112,7 +112,7 @@ PUREFUNC public uint64_t generic_hash(const void *obj, const TypeInfo *type) switch (type->tag) { case TextInfo: return Text$hash((void*)obj); case ArrayInfo: return Array$hash(obj, type); - case ChannelInfo: return Channel$hash((channel_t**)obj, type); + case ChannelInfo: return Channel$hash((Channel_t**)obj, type); case TableInfo: return Table$hash(obj, type); case OptionalInfo: { errx(1, "Optional hash not implemented"); @@ -137,7 +137,7 @@ PUREFUNC public int32_t generic_compare(const void *x, const void *y, const Type case PointerInfo: case FunctionInfo: return Pointer$compare(x, y, type); case TextInfo: return Text$compare(x, y); case ArrayInfo: return Array$compare(x, y, type); - case ChannelInfo: return Channel$compare((channel_t**)x, (channel_t**)y, type); + case ChannelInfo: return Channel$compare((Channel_t**)x, (Channel_t**)y, type); case TableInfo: return Table$compare(x, y, type); case OptionalInfo: { errx(1, "Optional compare not implemented"); @@ -161,7 +161,7 @@ PUREFUNC public bool generic_equal(const void *x, const void *y, const TypeInfo case PointerInfo: case FunctionInfo: return Pointer$equal(x, y, type); case TextInfo: return Text$equal(x, y); case ArrayInfo: return Array$equal(x, y, type); - case ChannelInfo: return Channel$equal((channel_t**)x, (channel_t**)y, type); + case ChannelInfo: return Channel$equal((Channel_t**)x, (Channel_t**)y, type); case TableInfo: return Table$equal(x, y, type); case EmptyStructInfo: return true; case OptionalInfo: { @@ -184,7 +184,7 @@ public Text_t generic_as_text(const void *obj, bool colorize, const TypeInfo *ty case FunctionInfo: return Func$as_text(obj, colorize, type); case TextInfo: return Text$as_text(obj, colorize, type); case ArrayInfo: return Array$as_text(obj, colorize, type); - case ChannelInfo: return Channel$as_text((channel_t**)obj, colorize, type); + case ChannelInfo: return Channel$as_text((Channel_t**)obj, colorize, type); case TableInfo: return Table$as_text(obj, colorize, type); case TypeInfoInfo: return Type$as_text(obj, colorize, type); case OptionalInfo: return Optional$as_text(obj, colorize, type); |
