summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2023-10-28 20:05:49 +0600
committerLibravatar Mubashshir <ahmubashshir@gmail.com>2023-10-28 20:05:49 +0600
commit7455c3d0bda6ab60d3f67fafd0ce04428143bcbe (patch)
tree4a139278995f0602469b10223aaa448ae0a967f9 /src/common.h
parentc47100c331e1fcc4353b6ed83a1d3485c9331eaf (diff)
downloadc-obp-example-7455c3d0bda6ab60d3f67fafd0ce04428143bcbe.tar.gz
c-obp-example-7455c3d0bda6ab60d3f67fafd0ce04428143bcbe.zip
Use better names for reference helpers
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'src/common.h')
-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__ */