aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-05 15:31:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-05 15:31:38 +0000
commite1b5111ff4d45343588ff5c2d68448e4e03fef90 (patch)
treeb704077c36baf287b6655b939a76f3bd6bf78c60 /io.c
parent9deb5262d899c7ff103c9b235723e947ae2314cb (diff)
downloadruby-e1b5111ff4d45343588ff5c2d68448e4e03fef90.tar.gz
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
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index f4b41dd21a..6f04deb7b0 100644
--- a/io.c
+++ b/io.c
@@ -169,9 +169,9 @@ VALUE rb_default_rs;
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_textmode, sym_binmode, sym_autoclose, sym_exception;
+static VALUE sym_textmode, sym_binmode, sym_autoclose;
static VALUE sym_SET, sym_CUR, sym_END;
#ifdef SEEK_DATA
static VALUE sym_DATA;
@@ -2633,7 +2633,7 @@ get_kwargs_exception(VALUE opts)
VALUE except;
if (!ids[0])
- ids[0] = sym_exception;
+ ids[0] = id_exception;
rb_get_kwargs(opts, ids, 0, 1, &except);
return except;
@@ -12379,5 +12379,5 @@ Init_IO(void)
#ifdef SEEK_HOLE
sym_HOLE = ID2SYM(rb_intern("HOLE"));
#endif
- sym_exception = ID2SYM(rb_intern("exception"));
+ id_exception = rb_intern("exception");
}