* ruby.c (opt_W_getter): use ruby_verbose directly instead of parameter
because ruby_verbose is not a real variable, so the address of parameter is not collect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18abca0e68
commit
2c66adba64
@ -1,3 +1,9 @@
|
|||||||
|
Wed Jun 18 19:20:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* ruby.c (opt_W_getter): use ruby_verbose directly instead of parameter
|
||||||
|
because ruby_verbose is not a real variable, so the address of
|
||||||
|
parameter is not collect.
|
||||||
|
|
||||||
Wed Jun 18 18:31:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Jun 18 18:31:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* win32/win32.c (errmap): add some pipe errors.
|
* win32/win32.c (errmap): add some pipe errors.
|
||||||
|
2
ruby.c
2
ruby.c
@ -1448,7 +1448,7 @@ verbose_setter(VALUE val, ID id, VALUE *variable)
|
|||||||
static VALUE
|
static VALUE
|
||||||
opt_W_getter(VALUE val, ID id, VALUE *variable)
|
opt_W_getter(VALUE val, ID id, VALUE *variable)
|
||||||
{
|
{
|
||||||
switch (*variable) {
|
switch (ruby_verbose) {
|
||||||
case Qnil:
|
case Qnil:
|
||||||
return INT2FIX(0);
|
return INT2FIX(0);
|
||||||
case Qfalse:
|
case Qfalse:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user