summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-16 02:46:57 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-16 02:46:57 +0000
commit4edf51453bee5673d15f65dc271e4dade5b5ea0e (patch)
tree38666e88965efee3788251c2c70c69f1f07b6b0a /st.c
parent36cbcc19f2117bf75d637ae4a8c978e968f0b367 (diff)
downloadruby-4edf51453bee5673d15f65dc271e4dade5b5ea0e.tar.gz
ruby-4edf51453bee5673d15f65dc271e4dade5b5ea0e.tar.xz
ruby-4edf51453bee5673d15f65dc271e4dade5b5ea0e.zip
remove configure from repositry
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/st.c b/st.c
index 2ce868d64..e7bd0ecf5 100644
--- a/st.c
+++ b/st.c
@@ -45,11 +45,18 @@ static struct st_hash_type type_strhash = {
strhash,
};
-#ifndef xmalloc
+#ifdef RUBY_PLATFORM
+#define xmalloc ruby_xmalloc
+#define xcalloc ruby_xcalloc
+#define xrealloc ruby_xrealloc
+#define xfree ruby_xfree
+
void *xmalloc();
void *xcalloc();
void *xrealloc();
+void xfree();
#endif
+
static void rehash();
#define alloc(type) (type*)xmalloc((unsigned)sizeof(type))