diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 08:36:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-25 08:36:46 +0000 |
commit | ce60bbc8519465a125f975f4169f0bb644fcadf3 (patch) | |
tree | 63e3c3a02457640466320791edac1a0b5cc19e42 /include | |
parent | 10906176b4dea0444588fba36b98f4b144a25775 (diff) | |
download | ruby-ce60bbc8519465a125f975f4169f0bb644fcadf3.tar.gz |
* include/ruby/intern.h (rb_io_ungetbyte): added prototype.
* io.c (rb_io_gets): use rb_io_getline_1 for unget buffer.
* ruby.c (load_file): use rb_io_ungetbyte.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index a75f813d12..70fbb00ca0 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -374,6 +374,7 @@ VALUE rb_io_write(VALUE, VALUE); VALUE rb_io_gets(VALUE); VALUE rb_io_getbyte(VALUE); VALUE rb_io_ungetc(VALUE, VALUE); +VALUE rb_io_ungetbyte(VALUE, VALUE); VALUE rb_io_close(VALUE); VALUE rb_io_flush(VALUE); VALUE rb_io_eof(VALUE); |