[ruby/prism] Chage some names
- PRISM_CUSTOM_ALLOCATOR -> PRISM_XALLOCATOR - prism_custom_allocator.h -> prism_xallocator.h https://github.com/ruby/prism/commit/83b4071e5b
This commit is contained in:
parent
c4bd6da298
commit
54f27549e2
@ -126,12 +126,12 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If you build prism with a custom allocator, configure it with "-D PRISM_CUSTOM_ALLOCATOR"
|
* If you build prism with a custom allocator, configure it with "-D PRISM_XALLOCATOR"
|
||||||
* to use your own allocator that defines xmalloc, xrealloc, xcalloc, and xfree.
|
* to use your own allocator that defines xmalloc, xrealloc, xcalloc, and xfree.
|
||||||
* For example, your `custom_allocator.h` file could look like this:
|
* For example, your `custom_allocator.h` file could look like this:
|
||||||
* ```
|
* ```
|
||||||
* #ifndef PRISM_CUSTOM_ALLOCATOR_H
|
* #ifndef PRISM_XALLOCATOR_H
|
||||||
* #define PRISM_CUSTOM_ALLOCATOR_H
|
* #define PRISM_XALLOCATOR_H
|
||||||
* #define xmalloc my_malloc
|
* #define xmalloc my_malloc
|
||||||
* #define xrealloc my_realloc
|
* #define xrealloc my_realloc
|
||||||
* #define xcalloc my_calloc
|
* #define xcalloc my_calloc
|
||||||
@ -139,8 +139,8 @@
|
|||||||
* #endif
|
* #endif
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
#ifdef PRISM_CUSTOM_ALLOCATOR
|
#ifdef PRISM_XALLOCATOR
|
||||||
# include "custom_allocator.h"
|
# include "prism_xallocator.h"
|
||||||
#else
|
#else
|
||||||
# define xmalloc malloc
|
# define xmalloc malloc
|
||||||
# define xrealloc realloc
|
# define xrealloc realloc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user