diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-23 05:20:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-23 05:20:05 +0000 |
commit | 2fd5dcc08c4066ee5da9d2b401f40625769fe731 (patch) | |
tree | 7b4174998514652307bba61eaf7d00f03d59b204 | |
parent | 5b764f07717a2337920c53532516100e8f5159b7 (diff) |
merge revision(s) 39335:
* include/ruby/ruby.h (HAVE_RB_SCAN_ARGS_OPTIONAL_HASH): for
rb_scan_args() optional hash feature. [Bug #7861]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/ruby/ruby.h | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sat Feb 23 14:19:51 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * include/ruby/ruby.h (HAVE_RB_SCAN_ARGS_OPTIONAL_HASH): for + rb_scan_args() optional hash feature. [Bug #7861] + Sat Feb 23 13:03:22 2013 Akinori MUSHA <knu@iDaemons.org> * lib/ipaddr.rb (IPAddr#in6_addr): Fix a typo with the closing diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 6debe428af..70b6769ec0 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1347,6 +1347,9 @@ VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE*); int rb_scan_args(int, const VALUE*, const char*, ...); VALUE rb_call_super(int, const VALUE*); +/* rb_scan_args() format allows ':' for optional hash */ +#define HAVE_RB_SCAN_ARGS_OPTIONAL_HASH 1 + VALUE rb_gv_set(const char*, VALUE); VALUE rb_gv_get(const char*); VALUE rb_iv_get(VALUE, const char*); |