summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-23 12:07:23 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-23 12:07:23 +0000
commite8b0f17319d78b7435d84d7875d923117eebc37e (patch)
treee784769fdb709d56709599b9597070d065ef5eed /re.c
parent548027ef61c706a1459ab38c43482e1e333844a4 (diff)
* array.c (ary_resize_capa): Remove an unused function.
* array.c, bignum.c, dir.c, enumerator.c, gc.c, io.c, numeric.c, object.c, re.c, string.c, struct.c: Mixing two styles is not a good thing. Stick with the K&R style in 1.8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/re.c b/re.c
index d138021894..b9133f7798 100644
--- a/re.c
+++ b/re.c
@@ -682,8 +682,10 @@ match_alloc(klass)
return (VALUE)match;
}
+static void match_check _((VALUE));
static void
-match_check(VALUE match)
+match_check(match)
+ VALUE match;
{
if (!RMATCH(match)->str) {
rb_raise(rb_eTypeError, "uninitialized Match");
@@ -1366,7 +1368,8 @@ match_string(match)
*/
static VALUE
-match_inspect(VALUE match)
+match_inspect(match)
+ VALUE match;
{
const char *cname = rb_obj_classname(match);
VALUE str;
@@ -2101,7 +2104,8 @@ rb_reg_s_union(self, args0)
* Regexp.union(/dogs/, /cats/i) #=> /(?-mix:dogs)|(?i-mx:cats)/
*/
static VALUE
-rb_reg_s_union_m(VALUE self, VALUE args)
+rb_reg_s_union_m(self, args)
+ VALUE self, args;
{
VALUE v;
if (RARRAY_LEN(args) == 1 &&