mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (rb_gc_enable, rb_gc_disable): should return Qtrue/Qfalse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ea850e3030
commit
9009b471da
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Jul 21 12:45:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* gc.c (rb_gc_enable, rb_gc_disable): should return Qtrue/Qfalse.
|
||||
|
||||
Tue Jul 21 12:38:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* variable.c (rb_generic_ivar_memsize): should not remove generic
|
||||
|
|
4
gc.c
4
gc.c
|
@ -789,7 +789,7 @@ rb_gc_enable(void)
|
|||
int old = dont_gc;
|
||||
|
||||
dont_gc = FALSE;
|
||||
return old;
|
||||
return old ? Qtrue : Qfalse;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -811,7 +811,7 @@ rb_gc_disable(void)
|
|||
int old = dont_gc;
|
||||
|
||||
dont_gc = TRUE;
|
||||
return old;
|
||||
return old ? Qtrue : Qfalse;
|
||||
}
|
||||
|
||||
VALUE rb_mGC;
|
||||
|
|
Loading…
Add table
Reference in a new issue