diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 19:59:14 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-15 19:59:14 -0400 |
| commit | e5420471a7364a92521575e7abd3a29a9318001b (patch) | |
| tree | 6b7aaccff3d033fdc49cee41874071637fa8b68e /src/stdlib/pointers.c | |
| parent | c3615dc92c667899af7a11b2b25201dad5502ee6 (diff) | |
Make some compatibility fixes to make sure the compiler can fully build
using TinyCC
Diffstat (limited to 'src/stdlib/pointers.c')
| -rw-r--r-- | src/stdlib/pointers.c | 9 |
1 files changed, 6 insertions, 3 deletions
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; } |
