io.c: ID instead of Symbol
* io.c (get_kwargs_exception): rb_get_kwargs() expects IDs, but not Symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9deb5262d8
commit
e1b5111ff4
8
io.c
8
io.c
@ -169,9 +169,9 @@ VALUE rb_default_rs;
|
|||||||
|
|
||||||
static VALUE argf;
|
static VALUE argf;
|
||||||
|
|
||||||
static ID id_write, id_read, id_getc, id_flush, id_readpartial, id_set_encoding;
|
static ID id_write, id_read, id_getc, id_flush, id_readpartial, id_set_encoding, id_exception;
|
||||||
static VALUE sym_mode, sym_perm, sym_extenc, sym_intenc, sym_encoding, sym_open_args;
|
static VALUE sym_mode, sym_perm, sym_extenc, sym_intenc, sym_encoding, sym_open_args;
|
||||||
static VALUE sym_textmode, sym_binmode, sym_autoclose, sym_exception;
|
static VALUE sym_textmode, sym_binmode, sym_autoclose;
|
||||||
static VALUE sym_SET, sym_CUR, sym_END;
|
static VALUE sym_SET, sym_CUR, sym_END;
|
||||||
#ifdef SEEK_DATA
|
#ifdef SEEK_DATA
|
||||||
static VALUE sym_DATA;
|
static VALUE sym_DATA;
|
||||||
@ -2633,7 +2633,7 @@ get_kwargs_exception(VALUE opts)
|
|||||||
VALUE except;
|
VALUE except;
|
||||||
|
|
||||||
if (!ids[0])
|
if (!ids[0])
|
||||||
ids[0] = sym_exception;
|
ids[0] = id_exception;
|
||||||
|
|
||||||
rb_get_kwargs(opts, ids, 0, 1, &except);
|
rb_get_kwargs(opts, ids, 0, 1, &except);
|
||||||
return except;
|
return except;
|
||||||
@ -12379,5 +12379,5 @@ Init_IO(void)
|
|||||||
#ifdef SEEK_HOLE
|
#ifdef SEEK_HOLE
|
||||||
sym_HOLE = ID2SYM(rb_intern("HOLE"));
|
sym_HOLE = ID2SYM(rb_intern("HOLE"));
|
||||||
#endif
|
#endif
|
||||||
sym_exception = ID2SYM(rb_intern("exception"));
|
id_exception = rb_intern("exception");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user