summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-02 09:57:47 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-02 09:57:47 +0000
commitf6f388a5bdbd3d3a68bf18f3352ba2be12688639 (patch)
tree3bdfb745e956666c70e078e9f3243a3a5b54c417 /io.c
parentd64a73e1ddba8706617205dab4e640f5ce7191b0 (diff)
* array.c, enum.c, insns.def, io.c, numeric.c, parse.y, process.c,
range.c: use prepared IDs. A patch from charliesome (Charlie Somerville). [Bug #7495] * common.mk: add dependency to id.h. * common.mk: replace ID_H_INCLUDES with id.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/io.c b/io.c
index 7a89654ba2..c678cc3b21 100644
--- a/io.c
+++ b/io.c
@@ -16,6 +16,7 @@
#include "ruby/thread.h"
#include "dln.h"
#include "internal.h"
+#include "id.h"
#include <ctype.h>
#include <errno.h>
@@ -7579,7 +7580,7 @@ argf_getline(int argc, VALUE *argv, VALUE argf)
retry:
if (!next_argv()) return Qnil;
if (ARGF_GENERIC_INPUT_P()) {
- line = rb_funcall3(ARGF.current_file, rb_intern("gets"), argc, argv);
+ line = rb_funcall3(ARGF.current_file, idGets, argc, argv);
}
else {
if (argc == 0 && rb_rs == rb_default_rs) {
@@ -7657,7 +7658,7 @@ rb_f_gets(int argc, VALUE *argv, VALUE recv)
if (recv == argf) {
return argf_gets(argc, argv, argf);
}
- return rb_funcall2(argf, rb_intern("gets"), argc, argv);
+ return rb_funcall2(argf, idGets, argc, argv);
}
/*