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

* io.c (rb_f_p): return nil if no argument. [ruby-dev:31285]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2007-07-24 01:37:07 +00:00
parent 6afa428a34
commit fead3c93e7
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Tue Jul 24 10:37:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* io.c (rb_f_p): return nil if no argument. [ruby-dev:31285]
Tue Jul 24 01:05:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* regint.h (USE_MATCH_RANGE_IS_COMPLETE_RANGE): undef to achieve old

2
io.c
View file

@ -3991,7 +3991,7 @@ rb_f_p(int argc, VALUE *argv, VALUE self)
if (argc == 1) {
ret = argv[0];
}
else {
else if (argc > 1) {
ret = rb_ary_new4(argc, argv);
}
if (TYPE(rb_stdout) == T_FILE) {