From e5420471a7364a92521575e7abd3a29a9318001b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 15 Apr 2025 19:59:14 -0400 Subject: Make some compatibility fixes to make sure the compiler can fully build using TinyCC --- src/stdlib/pointers.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/stdlib/pointers.c') diff --git a/src/stdlib/pointers.c b/src/stdlib/pointers.c index daea2dbd..d766a9b3 100644 --- a/src/stdlib/pointers.c +++ b/src/stdlib/pointers.c @@ -66,18 +66,21 @@ public Text_t Pointer$as_text(const void *x, bool colorize, const TypeInfo_t *ty return text; } -PUREFUNC public int32_t Pointer$compare(const void *x, const void *y, const TypeInfo_t*) { +PUREFUNC public int32_t Pointer$compare(const void *x, const void *y, const TypeInfo_t *info) { + (void)info; const void *xp = *(const void**)x, *yp = *(const void**)y; return (xp > yp) - (xp < yp); } -PUREFUNC public bool Pointer$equal(const void *x, const void *y, const TypeInfo_t*) { +PUREFUNC public bool Pointer$equal(const void *x, const void *y, const TypeInfo_t *info) { + (void)info; const void *xp = *(const void**)x, *yp = *(const void**)y; return xp == yp; } -PUREFUNC public bool Pointer$is_none(const void *x, const TypeInfo_t*) +PUREFUNC public bool Pointer$is_none(const void *x, const TypeInfo_t *info) { + (void)info; return *(void**)x == NULL; } -- cgit v1.2.3