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:
parent
6afa428a34
commit
fead3c93e7
2 changed files with 5 additions and 1 deletions
|
@ -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
2
io.c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue