mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* io.c (rb_io_mode_flags): preserve append mode flag.
[ruby-dev:24436] * io.c (rb_io_modenum_mode): do not use external output buffer. * string.c (rb_str_justify): differ pointer retrieval to prevent padding string modification. [ruby-dev:24434] * range.c (range_each_func): allow func to terminate loop by returning RANGE_EACH_BREAK. * range.c (member_i): use RANGE_EACH_BREAK. [ruby-talk:114959] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3d17082a50
commit
fbb88b011a
13 changed files with 90 additions and 89 deletions
10
variable.c
10
variable.c
|
@ -1695,15 +1695,6 @@ rb_define_global_const(name, val)
|
|||
rb_define_const(rb_cObject, name, val);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
original_module(c)
|
||||
VALUE c;
|
||||
{
|
||||
if (TYPE(c) == T_ICLASS)
|
||||
return RBASIC(c)->klass;
|
||||
return c;
|
||||
}
|
||||
|
||||
void
|
||||
rb_cvar_set(klass, id, val, warn)
|
||||
VALUE klass;
|
||||
|
@ -1720,7 +1711,6 @@ rb_cvar_get(klass, id)
|
|||
ID id;
|
||||
{
|
||||
VALUE value;
|
||||
VALUE tmp;
|
||||
|
||||
if (RCLASS(klass)->iv_tbl && st_lookup(RCLASS(klass)->iv_tbl,id,&value)) {
|
||||
return value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue