You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
361 B

25 years ago
  1. // User modifiable memory allocator.
  2. #ifndef _CL_MALLOC_H
  3. #define _CL_MALLOC_H
  4. #include <stdlib.h>
  5. // Function like malloc() which returns aligned memory of size (> 0) bytes.
  6. extern void* (*cl_malloc_hook) (size_t size);
  7. // Function like free() which makes available for reuse such memory.
  8. extern void (*cl_free_hook) (void* ptr);
  9. #endif /* _CL_MALLOC_H */