summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/common.h5
1 files changed, 3 insertions, 2 deletions
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__ */