mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
parent
6ad0f89d5a
commit
f7adee34a3
1 changed files with 28 additions and 20 deletions
|
@ -145,29 +145,37 @@
|
|||
#ifdef PRISM_XALLOCATOR
|
||||
#include "prism_xallocator.h"
|
||||
#else
|
||||
/**
|
||||
* The malloc function that should be used. This can be overriden with the
|
||||
* PRISM_XALLOCATOR define.
|
||||
*/
|
||||
#define xmalloc malloc
|
||||
#ifndef xmalloc
|
||||
/**
|
||||
* The malloc function that should be used. This can be overriden with
|
||||
* the PRISM_XALLOCATOR define.
|
||||
*/
|
||||
#define xmalloc malloc
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The realloc function that should be used. This can be overriden with the
|
||||
* PRISM_XALLOCATOR define.
|
||||
*/
|
||||
#define xrealloc realloc
|
||||
#ifndef xrealloc
|
||||
/**
|
||||
* The realloc function that should be used. This can be overriden with
|
||||
* the PRISM_XALLOCATOR define.
|
||||
*/
|
||||
#define xrealloc realloc
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The calloc function that should be used. This can be overriden with the
|
||||
* PRISM_XALLOCATOR define.
|
||||
*/
|
||||
#define xcalloc calloc
|
||||
#ifndef xcalloc
|
||||
/**
|
||||
* The calloc function that should be used. This can be overriden with
|
||||
* the PRISM_XALLOCATOR define.
|
||||
*/
|
||||
#define xcalloc calloc
|
||||
#endif
|
||||
|
||||
/**
|
||||
* The free function that should be used. This can be overriden with the
|
||||
* PRISM_XALLOCATOR define.
|
||||
*/
|
||||
#define xfree free
|
||||
#ifndef xfree
|
||||
/**
|
||||
* The free function that should be used. This can be overriden with the
|
||||
* PRISM_XALLOCATOR define.
|
||||
*/
|
||||
#define xfree free
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue