goinfre/libs/libdebugmalloc/xmalloc.h
goinfre/libs/libdebugmalloc/xmalloc.h
_____________________________________________________________________________
/ / Index / Goinfre / Resume / Links / Contact / Sitemap / .: v0.6.1.0 |^|
|\__/-------+ +--------+-------+---------+---------+-----------------+#|
| 1| /goinfre/libs/libdebugmalloc/xmalloc.h |#|
| 2| ========================================== |#|
| 3| |#|
| 4| [ raw ] [ download ] |#|
| 5| ` `` ````````````````````` |#|
| 6| |#|
| 7| #ifndef _XMALLOC_H |#|
| 8| # define _XMALLOC_H |#|
| 9| |#|
| 10| # include <sys/types.h> |#|
| 11| |#|
| 12| # include "common.h" |#|
| 13| |#|
| 14| # define _XM_PROTO , char *, int, char * |#|
| 15| |#|
| 16| # define _XM_FUNC_PROTO(FUNC, RET, PROTO) RET _ml_x ## FUNC PROTO |#|
| 17| |#|
| 18| # define malloc(SIZE) _ml_xmalloc((SIZE) _XM_ARGS) |#|
| 19| # define calloc(NUMBER, SIZE) _ml_xcalloc((NUMBER), (SIZE) |#|
| 20| _XM_ARGS) |#|
| 21| # define realloc(PTR, SIZE) _ml_xrealloc((PTR), (SIZE) _XM_ARGS) |#|
| 22| # define free(PTR) _ml_xfree((PTR) _XM_ARGS) |#|
| 23| | |
| 24| _XM_FUNC_PROTO(malloc, void *, (size_t _XM_PROTO)); | |
| 25| _XM_FUNC_PROTO(calloc, void *, (size_t, size_t _XM_PROTO)); | |
| 26| _XM_FUNC_PROTO(realloc, void *, (void *, size_t _XM_PROTO)); | |
| 27| | |
| 28| void _ml_xfree(void * _XM_PROTO); | |
| 29| void show_xmalloc(void); | |
| 30| | |
| 31| #endif /* !_XMALLOC_H */ | |
| 32| | |
+---+ | |
\_ \______ mo5.so - normal - 1337.so - rev.so - video_r.so +---------------+ |
|__ \_____ plain.so - color.so - comment.so / moul 2008 (c) |V|
\-----\______\________________________________________/-----------------+-+