1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (argf_to_io): should prefetch argv.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-02-21 09:33:05 +00:00
parent 800ad6ef94
commit 32f5e4ecdb
3 changed files with 9 additions and 1 deletions

View file

@ -18,6 +18,10 @@ Thu Feb 20 23:11:42 2003 Akinori MUSHA <knu@iDaemons.org>
* instruby.rb: Convert mdoc manpages to man for systems which
nroff(1) does not grok mdoc. [merged from 1.8]
Tue Feb 18 21:39:27 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (argf_to_io): should prefetch argv.
Fri Feb 14 14:25:24 2003 akira yamada <akira@arika.org>
* lib/uri/generic.rb, lib/uri/ldap.rb, lib/uri/mailto.ldap: all foo=()
@ -47,6 +51,7 @@ Sat Feb 8 04:04:13 2003 Akinori MUSHA <knu@iDaemons.org>
lib/shell/error.rb, lib/shell/filter.rb: Fix typos and
grammos. [approved by: keiju]
>>>>>>> 1.285.2.583
Mon Feb 3 23:46:48 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (argf_getline): should not increment lineno at EOF.

4
eval.c
View file

@ -7891,7 +7891,9 @@ rb_thread_schedule()
next->gid = 0;
rb_thread_ready(next);
next->status = THREAD_TO_KILL;
rb_thread_save_context(curr_thread);
if (!rb_thread_dead(curr_thread)) {
rb_thread_save_context(curr_thread);
}
rb_thread_deadlock();
}
next->wait_for = 0;

1
io.c
View file

@ -3222,6 +3222,7 @@ argf_fileno()
static VALUE
argf_to_io()
{
next_argv();
return current_file;
}