ruby-changes:13008
From: nobu <ko1@a...>
Date: Sat, 5 Sep 2009 08:54:35 +0900 (JST)
Subject: [ruby-changes:13008] Ruby:r24753 (trunk): * re.c (update_char_offset):
nobu 2009-09-05 08:49:18 +0900 (Sat, 05 Sep 2009) New Revision: 24753 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24753 Log: * re.c (update_char_offset): * re.c (rb_reg_equal): * re.c (reg_match_pos): * re.c (rb_reg_eqq): * re.c (static VALUE): * re.c (Init_Regexp): [ruby-core:24748] Modified files: trunk/ChangeLog trunk/re.c Index: ChangeLog =================================================================== --- ChangeLog (revision 24752) +++ ChangeLog (revision 24753) @@ -1,3 +1,13 @@ +Sat Sep 5 08:49:16 2009 Nobuyoshi Nakada <nobu@r...> + + * re.c (update_char_offset): + * re.c (rb_reg_equal): + * re.c (reg_match_pos): + * re.c (rb_reg_eqq): + * re.c (static VALUE): + * re.c (Init_Regexp): + [ruby-core:24748] + Fri Sep 4 20:40:57 2009 Nobuyoshi Nakada <nobu@r...> * numeric.c (round): added declaration. [ruby-dev:39222] Index: re.c =================================================================== --- re.c (revision 24752) +++ re.c (revision 24753) @@ -813,8 +813,8 @@ { struct rmatch *rm = RMATCH(match)->rmatch; struct re_registers *regs; - int num_regs; - int i, num_pos, c; + int i, num_regs, num_pos; + long c; char *s, *p, *q, *e; rb_encoding *enc; pair_t *pairs; @@ -2568,7 +2568,7 @@ rb_backref_set(Qnil); return -1; } - *strp = str = reg_operand(str, Qtrue); + *strp = str = reg_operand(str, TRUE); if (pos != 0) { if (pos < 0) { VALUE l = rb_str_length(str); @@ -2662,7 +2662,7 @@ { long start; - str = reg_operand(str, Qfalse); + str = reg_operand(str, FALSE); if (NIL_P(str)) { rb_backref_set(Qnil); return Qfalse; @@ -2960,7 +2960,7 @@ static VALUE rb_reg_s_quote(VALUE c, VALUE str) { - return rb_reg_quote(reg_operand(str, Qtrue)); + return rb_reg_quote(reg_operand(str, TRUE)); } int -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/