summaryrefslogtreecommitdiff
path: root/re.h
diff options
context:
space:
mode:
authorwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 14:58:36 +0000
committerwyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 14:58:36 +0000
commit96d07f510a12323095a237ba34ef4dcb8fee566b (patch)
treec96946b9d51abbb09ae917ce34e4facd06a48eaa /re.h
parente341e9b035294d1acf5347620fbd2fcb9245d382 (diff)
Backport #1875 [ruby-core:24735]; (RMATCH_REGS): added for compatibility.
(RFLOAT_VALUE, RSTRING_END, RREGEXP_SRC_*, RBIGNUM_*): backported macros for compatiblity from trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@26452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.h')
-rw-r--r--re.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/re.h b/re.h
index 45b2753dd5..3b3380bd80 100644
--- a/re.h
+++ b/re.h
@@ -27,6 +27,7 @@ struct RMatch {
};
#define RMATCH(obj) (R_CAST(RMatch)(obj))
+#define RMATCH_REGS(obj) (R_CAST(RMatch)(obj)->regs
VALUE rb_reg_regcomp _((VALUE));
long rb_reg_search _((VALUE, VALUE, long, long));