summaryrefslogtreecommitdiff
path: root/prism/defines.h
diff options
context:
space:
mode:
authorHASUMI Hitoshi <[email protected]>2024-03-03 09:52:36 +0900
committergit <[email protected]>2024-03-04 16:40:23 +0000
commit54f27549e2cd7cdbd83d3e6a2079108fe225c0b5 (patch)
treea19a02841b8fbac2f6d996c05e437b4e049a1445 /prism/defines.h
parentc4bd6da2988ecdf3e6d00be78e58a4eba6192bed (diff)
[ruby/prism] Chage some names
- PRISM_CUSTOM_ALLOCATOR -> PRISM_XALLOCATOR - prism_custom_allocator.h -> prism_xallocator.h https://github.com/ruby/prism/commit/83b4071e5b
Diffstat (limited to 'prism/defines.h')
-rw-r--r--prism/defines.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/prism/defines.h b/prism/defines.h
index 00ed80209a..d4e79b4c42 100644
--- a/prism/defines.h
+++ b/prism/defines.h
@@ -126,12 +126,12 @@
#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.
* For example, your `custom_allocator.h` file could look like this:
* ```
- * #ifndef PRISM_CUSTOM_ALLOCATOR_H
- * #define PRISM_CUSTOM_ALLOCATOR_H
+ * #ifndef PRISM_XALLOCATOR_H
+ * #define PRISM_XALLOCATOR_H
* #define xmalloc my_malloc
* #define xrealloc my_realloc
* #define xcalloc my_calloc
@@ -139,8 +139,8 @@
* #endif
* ```
*/
-#ifdef PRISM_CUSTOM_ALLOCATOR
-# include "custom_allocator.h"
+#ifdef PRISM_XALLOCATOR
+# include "prism_xallocator.h"
#else
# define xmalloc malloc
# define xrealloc realloc