summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/st.c b/st.c
index c6f0c2faf3..ced1f9196a 100644
--- a/st.c
+++ b/st.c
@@ -48,6 +48,11 @@ static struct st_hash_type type_strhash = {
static void rehash(st_table *);
+#ifdef RUBY
+#define malloc xmalloc
+#define calloc xcalloc
+#endif
+
#define alloc(type) (type*)malloc((unsigned)sizeof(type))
#define Calloc(n,s) (char*)calloc((n),(s))