Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git] / libobjc / objc / deprecated / objc_malloc.h
blobcf6c6e9d092e81a1fef753f285e8afa0253381e8
1 /*
2 ** Hook functions for memory allocation and disposal.
3 ** This makes it easy to substitute garbage collection systems
4 ** such as Boehm's GC by assigning these function pointers
5 ** to the GC's allocation routines. By default these point
6 ** to the ANSI standard malloc, realloc, free, etc.
7 **
8 ** Users should call the normal objc routines above for
9 ** memory allocation and disposal within their programs.
11 objc_EXPORT void *(*_objc_malloc)(size_t);
12 objc_EXPORT void *(*_objc_atomic_malloc)(size_t);
13 objc_EXPORT void *(*_objc_valloc)(size_t);
14 objc_EXPORT void *(*_objc_realloc)(void *, size_t);
15 objc_EXPORT void *(*_objc_calloc)(size_t, size_t);
16 objc_EXPORT void (*_objc_free)(void *);