Wrappers to the allocators used by SDS. Note that SDS will actually * just use the macros defined into sdsalloc.h in order to avoid to pay * the overhead of function calls. Here we define these wrappers only for * the programs SDS is linked to, if they want to touch the SDS internals * even if they use a different allocator. */
| 1162 | * the programs SDS is linked to, if they want to touch the SDS internals |
| 1163 | * even if they use a different allocator. */ |
| 1164 | void *sds_malloc(size_t size) { return s_malloc(size); } |
| 1165 | void *sds_realloc(void *ptr, size_t size) { return s_realloc(ptr,size); } |
| 1166 | void sds_free(void *ptr) { s_free(ptr); } |
| 1167 |
no outgoing calls
no test coverage detected