|
|
@ -27,10 +27,14 @@ char *rmalloc_strndup(const char *s, size_t n);
|
|
|
|
#define calloc(count, size) RedisModule_Calloc(count, size)
|
|
|
|
#define calloc(count, size) RedisModule_Calloc(count, size)
|
|
|
|
#define realloc(ptr, size) RedisModule_Realloc(ptr, size)
|
|
|
|
#define realloc(ptr, size) RedisModule_Realloc(ptr, size)
|
|
|
|
#define free(ptr) RedisModule_Free(ptr)
|
|
|
|
#define free(ptr) RedisModule_Free(ptr)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef strdup
|
|
|
|
|
|
|
|
#undef strdup
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#define strdup(ptr) RedisModule_Strdup(ptr)
|
|
|
|
#define strdup(ptr) RedisModule_Strdup(ptr)
|
|
|
|
|
|
|
|
|
|
|
|
// /* More overriding */
|
|
|
|
/* More overriding */
|
|
|
|
// // needed to avoid calling strndup->malloc
|
|
|
|
// needed to avoid calling strndup->malloc
|
|
|
|
#ifdef strndup
|
|
|
|
#ifdef strndup
|
|
|
|
#undef strndup
|
|
|
|
#undef strndup
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|