mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (rb_f_gets.): re-enable rdoc.
(rb_f_readline): ditto. (rb_f_readlines): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
18e46b81ff
commit
20f4f5f82c
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Tue May 13 08:25:31 2008 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* io.c (rb_f_gets.): re-enable rdoc.
|
||||||
|
(rb_f_readline): ditto.
|
||||||
|
(rb_f_readlines): ditto.
|
||||||
|
|
||||||
Mon May 12 23:37:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
Mon May 12 23:37:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* vm.c (collect_local_variables_in_env): remove unnecessary check
|
* vm.c (collect_local_variables_in_env): remove unnecessary check
|
||||||
|
|
9
io.c
9
io.c
|
@ -5366,6 +5366,8 @@ argf_lineno_setter(VALUE val, ID id, VALUE *var)
|
||||||
lineno = INT2FIX(n);
|
lineno = INT2FIX(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static VALUE argf_gets(int, VALUE *, VALUE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* gets(sep=$/) => string or nil
|
* gets(sep=$/) => string or nil
|
||||||
|
@ -5399,7 +5401,6 @@ argf_lineno_setter(VALUE val, ID id, VALUE *var)
|
||||||
* parameter is gradually losing favor in the Ruby community.
|
* parameter is gradually losing favor in the Ruby community.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE argf_gets(int, VALUE *, VALUE);
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_f_gets(int argc, VALUE *argv, VALUE recv)
|
rb_f_gets(int argc, VALUE *argv, VALUE recv)
|
||||||
{
|
{
|
||||||
|
@ -5445,6 +5446,8 @@ rb_gets(void)
|
||||||
return line;
|
return line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static VALUE argf_readline(int, VALUE *, VALUE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* readline(sep=$/) => string
|
* readline(sep=$/) => string
|
||||||
|
@ -5455,7 +5458,6 @@ rb_gets(void)
|
||||||
* +readline+ raises +EOFError+ at end of file.
|
* +readline+ raises +EOFError+ at end of file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE argf_readline(int, VALUE *, VALUE);
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_f_readline(int argc, VALUE *argv, VALUE recv)
|
rb_f_readline(int argc, VALUE *argv, VALUE recv)
|
||||||
{
|
{
|
||||||
|
@ -5480,6 +5482,8 @@ argf_readline(int argc, VALUE *argv, VALUE argf)
|
||||||
return line;
|
return line;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static VALUE argf_readlines(int, VALUE *, VALUE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* readlines(sep=$/) => array
|
* readlines(sep=$/) => array
|
||||||
|
@ -5490,7 +5494,6 @@ argf_readline(int argc, VALUE *argv, VALUE argf)
|
||||||
* <code>Kernel.gets(<i>sep</i>)</code> until the end of file.
|
* <code>Kernel.gets(<i>sep</i>)</code> until the end of file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE argf_readlines(int, VALUE *, VALUE);
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_f_readlines(int argc, VALUE *argv, VALUE recv)
|
rb_f_readlines(int argc, VALUE *argv, VALUE recv)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue