From 7455c3d0bda6ab60d3f67fafd0ce04428143bcbe Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Sat, 28 Oct 2023 20:05:49 +0600 Subject: Use better names for reference helpers Signed-off-by: Mubashshir --- src/common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index b0f9e7f..08b8c73 100644 --- a/src/common.h +++ b/src/common.h @@ -14,7 +14,8 @@ strncpy((ptr), "", (size)) #define array(type, size) ((type *) calloc (sizeof(type), (size))) -#define ref(x) x * const -#define mut(x) x * +#define ref(x) const x * const +#define mut(x) const x * +#define ptr(x) x * #endif /* __COMMON_H__ */ -- cgit v1.2.3