mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* cancel [ruby-dev:25699], which is for 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b18d76a6f1
commit
31a82ced39
2 changed files with 0 additions and 11 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue