diff options
author | 2023-10-28 20:05:49 +0600 | |
---|---|---|
committer | 2023-10-28 20:05:49 +0600 | |
commit | 7455c3d0bda6ab60d3f67fafd0ce04428143bcbe (patch) | |
tree | 4a139278995f0602469b10223aaa448ae0a967f9 /src/common.h | |
parent | c47100c331e1fcc4353b6ed83a1d3485c9331eaf (diff) | |
download | c-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.h | 5 |
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__ */ |