| 3122 | } |
| 3123 | |
| 3124 | extern inline RPMALLOC_ALLOCATOR void* |
| 3125 | rprealloc(void* ptr, size_t size) { |
| 3126 | #if ENABLE_VALIDATE_ARGS |
| 3127 | if (size >= MAX_ALLOC_SIZE) { |
| 3128 | errno = EINVAL; |
| 3129 | return ptr; |
| 3130 | } |
| 3131 | #endif |
| 3132 | heap_t* heap = get_thread_heap(); |
| 3133 | return _rpmalloc_reallocate(heap, ptr, size, 0, 0); |
| 3134 | } |
| 3135 | |
| 3136 | extern RPMALLOC_ALLOCATOR void* |
| 3137 | rpaligned_realloc(void* ptr, size_t alignment, size_t size, size_t oldsize, |
no test coverage detected