diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-11-27 09:23:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-11-27 09:23:38 +0000 |
commit | f54418b71f57e00d4a50bd86bf7d18b8b5195287 (patch) | |
tree | d5bd57142a0d4736fdfd1f35dcd864ac40cfb045 /gc.c | |
parent | 1f297b8bfc0fdacb8cfb19736cf224b2550281b3 (diff) |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -61,7 +61,7 @@ mem_error(mesg) void * ruby_xmalloc(size) - size_t size; + long size; { void *mem; @@ -91,7 +91,7 @@ ruby_xmalloc(size) void * ruby_xcalloc(n, size) - size_t n, size; + long n, size; { void *mem; @@ -104,7 +104,7 @@ ruby_xcalloc(n, size) void * ruby_xrealloc(ptr, size) void *ptr; - size_t size; + long size; { void *mem; @@ -1240,9 +1240,11 @@ rb_gc_call_finalizer_at_exit() while (p < pend) { if (BUILTIN_TYPE(p) == T_DATA && DATA_PTR(p) && RANY(p)->as.data.dfree) { + p->as.free.flag = 0; (*RANY(p)->as.data.dfree)(DATA_PTR(p)); } else if (BUILTIN_TYPE(p) == T_FILE) { + p->as.free.flag = 0; rb_io_fptr_finalize(RANY(p)->as.file.fptr); } p++; @@ -1310,14 +1312,14 @@ Init_GC() void* xmalloc(size) - size_t size; + long size; { return ruby_xmalloc(size); } void* xcalloc(n,size) - size_t n,size; + long n,size; { return ruby_xcalloc(n, size); } @@ -1325,7 +1327,7 @@ xcalloc(n,size) void* xrealloc(ptr,size) void *ptr; - size_t size; + long size; { return ruby_xrealloc(ptr, size); } |