diff options
Diffstat (limited to 'deps/ae/zmalloc.h')
| -rw-r--r-- | deps/ae/zmalloc.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deps/ae/zmalloc.h b/deps/ae/zmalloc.h new file mode 100644 index 0000000..86e9d92 --- /dev/null +++ b/deps/ae/zmalloc.h @@ -0,0 +1,15 @@ +/* zmalloc.h - simplified memory allocation wrapper for ae library + * This is a minimal version for standalone use outside Redis. + */ +#ifndef __ZMALLOC_H +#define __ZMALLOC_H + +#include <stdlib.h> + +/* Simple wrappers around standard malloc/free */ +#define zmalloc malloc +#define zfree free +#define zrealloc realloc +#define zcalloc calloc + +#endif |
