diff options
Diffstat (limited to 'examples/redis-unstable/deps/hdr_histogram/hdr_redis_malloc.h')
| -rw-r--r-- | examples/redis-unstable/deps/hdr_histogram/hdr_redis_malloc.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/redis-unstable/deps/hdr_histogram/hdr_redis_malloc.h b/examples/redis-unstable/deps/hdr_histogram/hdr_redis_malloc.h new file mode 100644 index 0000000..d9401ca --- /dev/null +++ b/examples/redis-unstable/deps/hdr_histogram/hdr_redis_malloc.h | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | #ifndef HDR_MALLOC_H__ | ||
| 2 | #define HDR_MALLOC_H__ | ||
| 3 | |||
| 4 | void *zmalloc(size_t size); | ||
| 5 | void *zcalloc_num(size_t num, size_t size); | ||
| 6 | void *zrealloc(void *ptr, size_t size); | ||
| 7 | void zfree(void *ptr); | ||
| 8 | |||
| 9 | #define hdr_malloc zmalloc | ||
| 10 | #define hdr_calloc zcalloc_num | ||
| 11 | #define hdr_realloc zrealloc | ||
| 12 | #define hdr_free zfree | ||
| 13 | #endif | ||
