diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-16 00:06:48 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-02-16 00:06:48 +0000 |
| commit | 48b893cfb5d5bfacab60f3f657b147a44b5fa855 (patch) | |
| tree | d12ce43bf1561afaa6219597ae4a488ed3ba0e33 | |
| parent | bb62b25a1b691ec13a95c58dbecc006792d3e0a7 (diff) | |
| download | ruby-48b893cfb5d5bfacab60f3f657b147a44b5fa855.tar.gz ruby-48b893cfb5d5bfacab60f3f657b147a44b5fa855.tar.xz ruby-48b893cfb5d5bfacab60f3f657b147a44b5fa855.zip | |
* cancel [ruby-dev:25699], which is for 1.9.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/readline/readline.c | 6 |
2 files changed, 0 insertions, 11 deletions
@@ -1,8 +1,3 @@ -Tue Feb 15 22:14:34 2005 sheepman <sheepman@tcn.zaq.ne.jp> - - * ext/readline/readline.c (Readline.readline): use rl_outstream - and rl_instream. [ruby-dev:25699] - Mon Feb 14 23:58:17 2005 Kouhei Sutou <kou@cozmixng.org> * lib/rss/parser.rb (RSS::ListenerMixin::tag_end): diff --git a/ext/readline/readline.c b/ext/readline/readline.c index a8d2f8279..4c7b08f51 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -7,7 +7,6 @@ #include <readline/history.h> #include "ruby.h" -#include "rubyio.h" #include "rubysig.h" #ifdef HAVE_UNISTD_H @@ -46,7 +45,6 @@ readline_readline(argc, argv, self) char *prompt = NULL; char *buff; int status; - OpenFile *ofp, *ifp; rb_secure(4); if (rb_scan_args(argc, argv, "02", &tmp, &add_hist) > 0) { @@ -56,10 +54,6 @@ readline_readline(argc, argv, self) if (!isatty(0) && errno == EBADF) rb_raise(rb_eIOError, "stdin closed"); - GetOpenFile(rb_stdout, ofp); - rl_outstream = rb_io_stdio_file(ofp); - GetOpenFile(rb_stdin, ifp); - rl_instream = rb_io_stdio_file(ifp); buff = (char*)rb_protect((VALUE(*)_((VALUE)))readline, (VALUE)prompt, &status); if (status) { |
