diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-01 09:42:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-08-01 09:42:38 +0000 |
commit | 5e6634ce67281e7142e61fa5ba18265ff894c9e5 (patch) | |
tree | 2e4f554d0934713e09fe4c4cc9ddd3b48a9dee2f /enum.c | |
parent | 2b98e10419af64787e8fd9ab5c0ff9ece7d23c50 (diff) |
* parse.y (tokadd_string): ignore backslashed spaces in %w.
* enum.c (enum_find): do not use rb_eval_cmd(); should not accept
a string for if_none.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,7 @@ enum_find(argc, argv, obj) } rb_gc_force_recycle((VALUE)memo); if (!NIL_P(if_none)) { - rb_eval_cmd(if_none, rb_ary_new2(0), 0); + return rb_funcall(if_none, rb_intern("call"), 0, 0); } return Qnil; } |