summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-05 09:01:07 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-05 09:01:07 +0000
commit656d6d28704943d2960b20761b6d05386086e8a2 (patch)
treec99fec4f83ee9eb51430be6aaec27682c7dc6367 /ruby.h
parent7f3aa8b9ea9aaf38f4167e95ba86dd5d3766554e (diff)
2000-06-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ruby.h b/ruby.h
index b0c07e5e1e..a3170a8ed9 100644
--- a/ruby.h
+++ b/ruby.h
@@ -344,9 +344,16 @@ struct RBignum {
#define OBJ_TAINTED(x) FL_TEST((x), FL_TAINT)
#define OBJ_TAINT(x) FL_SET((x), FL_TAINT)
+#define xmalloc ruby_xmalloc
+#define xcalloc ruby_xcalloc
+#define xrealloc ruby_xrealloc
+#define xfree ruby_xfree
+
void *xmalloc _((size_t));
void *xcalloc _((size_t,size_t));
void *xrealloc _((void*,size_t));
+void xfree _((void*));
+
#define ALLOC_N(type,n) (type*)xmalloc(sizeof(type)*(n))
#define ALLOC(type) (type*)xmalloc(sizeof(type))
#define REALLOC_N(var,type,n) (var)=(type*)xrealloc((char*)(var),sizeof(type)*(n))