From aeed1992e94c5ab6a5104a06a921101fbe8f40ed Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 8 Sep 2024 17:17:15 -0400 Subject: Fix nearly every GCC warning and add __attribute__((pure/const)) where appropriate --- builtins/pointer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'builtins/pointer.h') diff --git a/builtins/pointer.h b/builtins/pointer.h index 7748da4b..c3c622cf 100644 --- a/builtins/pointer.h +++ b/builtins/pointer.h @@ -7,10 +7,11 @@ #include #include "types.h" +#include "util.h" Text_t 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); +PUREFUNC int32_t Pointer$compare(const void *x, const void *y, const TypeInfo *type); +PUREFUNC bool Pointer$equal(const void *x, const void *y, const TypeInfo *type); #define Null(t) (t*)NULL #define POINTER_TYPE(_sigil, _pointed) (&(TypeInfo){\ -- cgit v1.2.3