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