aboutsummaryrefslogtreecommitdiff
path: root/builtins
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-05 12:49:13 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-03-05 12:49:13 -0500
commit103edd636205921e1afadd91a284f3ead22afcce (patch)
tree915ca6ff044de32d419b2c399b8f0028105af9e6 /builtins
parente29aa52460df6a5d3e78f7e466947bcdd7a3bbb0 (diff)
Fix cyclic structs/enums
Diffstat (limited to 'builtins')
-rw-r--r--builtins/functions.c2
-rw-r--r--builtins/pointer.c2
-rw-r--r--builtins/pointer.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/builtins/functions.c b/builtins/functions.c
index c5514ffe..8277fbc2 100644
--- a/builtins/functions.c
+++ b/builtins/functions.c
@@ -112,7 +112,7 @@ public bool generic_equal(const void *x, const void *y, const TypeInfo *type)
public CORD generic_as_text(const void *obj, bool colorize, const TypeInfo *type)
{
switch (type->tag) {
- case PointerInfo: return Pointer__cord(obj, colorize, type);
+ case PointerInfo: return Pointer__as_text(obj, colorize, type);
case FunctionInfo: return Func__as_text(obj, colorize, type);
case ArrayInfo: return Array__as_text(obj, colorize, type);
case TableInfo: return Table_as_text(obj, colorize, type);
diff --git a/builtins/pointer.c b/builtins/pointer.c
index bf844cbf..54bab4b3 100644
--- a/builtins/pointer.c
+++ b/builtins/pointer.c
@@ -18,7 +18,7 @@ typedef struct recursion_s {
struct recursion_s *next;
} recursion_t;
-public CORD Pointer__cord(const void *x, bool colorize, const TypeInfo *type) {
+public CORD Pointer__as_text(const void *x, bool colorize, const TypeInfo *type) {
auto ptr_info = type->PointerInfo;
if (!x) {
CORD typename = generic_as_text(NULL, false, ptr_info.pointed);
diff --git a/builtins/pointer.h b/builtins/pointer.h
index c3554726..32cf365b 100644
--- a/builtins/pointer.h
+++ b/builtins/pointer.h
@@ -5,7 +5,7 @@
#include "types.h"
-CORD Pointer__cord(const void *x, bool colorize, const TypeInfo *type);
+CORD Pointer__as_text(const void *x, bool colorize, const TypeInfo *type);
int32_t Pointer__compare(const void *x, const void *y, const TypeInfo *type);
bool Pointer__equal(const void *x, const void *y, const TypeInfo *type);
uint32_t Pointer__hash(const void *x, const TypeInfo *type);