diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-23 12:07:23 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-23 12:07:23 +0000 |
commit | e8b0f17319d78b7435d84d7875d923117eebc37e (patch) | |
tree | e784769fdb709d56709599b9597070d065ef5eed /re.c | |
parent | 548027ef61c706a1459ab38c43482e1e333844a4 (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.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 && |