diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-16 02:46:57 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-05-16 02:46:57 +0000 |
| commit | 4edf51453bee5673d15f65dc271e4dade5b5ea0e (patch) | |
| tree | 38666e88965efee3788251c2c70c69f1f07b6b0a /gc.c | |
| parent | 36cbcc19f2117bf75d637ae4a8c978e968f0b367 (diff) | |
| download | ruby-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 'gc.c')
| -rw-r--r-- | gc.c | 45 |
1 files changed, 39 insertions, 6 deletions
@@ -63,9 +63,8 @@ mem_error(mesg) rb_fatal(mesg); } -#ifndef xmalloc void * -xmalloc(size) +ruby_xmalloc(size) size_t size; { void *mem; @@ -95,7 +94,7 @@ xmalloc(size) } void * -xcalloc(n, size) +ruby_xcalloc(n, size) size_t n, size; { void *mem; @@ -107,7 +106,7 @@ xcalloc(n, size) } void * -xrealloc(ptr, size) +ruby_xrealloc(ptr, size) void *ptr; size_t size; { @@ -134,12 +133,11 @@ xrealloc(ptr, size) } void -xfree(x) +ruby_xfree(x) void *x; { if (x) free(x); } -#endif extern int ruby_in_compile; static int dont_gc; @@ -1220,3 +1218,38 @@ Init_GC() rb_gc_unregister_address(&rb_mObSpace); finalizers = rb_ary_new(); } + +#undef xmalloc +#undef xcalloc +#undef xrealloc +#undef xfree + +void* +xmalloc(size) + size_t size; +{ + return ruby_xmalloc(size); +} + +void* +xcalloc(n,size) + size_t n,size; +{ + return ruby_xcalloc(n, size); +} + +void* +xrealloc(ptr,size) + void *ptr; + size_t size; +{ + return ruby_xrealloc(ptr, size); +} + +void +xfree(ptr) + void *ptr; +{ + return ruby_xfree(ptr); +} + |
