ruby-changes:14798
From: nobu <ko1@a...>
Date: Sun, 14 Feb 2010 04:32:11 +0900 (JST)
Subject: [ruby-changes:14798] Ruby:r26660 (trunk): * re.c (match_aref): fixed indent.
nobu 2010-02-14 04:31:42 +0900 (Sun, 14 Feb 2010) New Revision: 26660 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26660 Log: * re.c (match_aref): fixed indent. Modified files: trunk/re.c trunk/version.h Index: re.c =================================================================== --- re.c (revision 26659) +++ re.c (revision 26660) @@ -1657,33 +1657,33 @@ rb_scan_args(argc, argv, "11", &idx, &rest); if (NIL_P(rest)) { - if (FIXNUM_P(idx)) { - if (FIX2INT(idx) >= 0) { - return rb_reg_nth_match(FIX2INT(idx), match); - } - } - else { - const char *p; - int num; + if (FIXNUM_P(idx)) { + if (FIX2INT(idx) >= 0) { + return rb_reg_nth_match(FIX2INT(idx), match); + } + } + else { + const char *p; + int num; - switch (TYPE(idx)) { - case T_SYMBOL: - p = rb_id2name(SYM2ID(idx)); - goto name_to_backref; - break; - case T_STRING: - p = StringValuePtr(idx); + switch (TYPE(idx)) { + case T_SYMBOL: + p = rb_id2name(SYM2ID(idx)); + goto name_to_backref; + break; + case T_STRING: + p = StringValuePtr(idx); - name_to_backref: - num = name_to_backref_number(RMATCH_REGS(match), - RMATCH(match)->regexp, p, p + strlen(p)); - return rb_reg_nth_match(num, match); - break; + name_to_backref: + num = name_to_backref_number(RMATCH_REGS(match), + RMATCH(match)->regexp, p, p + strlen(p)); + return rb_reg_nth_match(num, match); + break; - default: - break; - } - } + default: + break; + } + } } return rb_ary_aref(argc, argv, match_to_a(match)); Index: version.h =================================================================== --- version.h (revision 26659) +++ version.h (revision 26660) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_RELEASE_DATE "2010-02-13" +#define RUBY_RELEASE_DATE "2010-02-14" #define RUBY_PATCHLEVEL -1 #define RUBY_BRANCH_NAME "trunk" @@ -8,7 +8,7 @@ #define RUBY_VERSION_TEENY 1 #define RUBY_RELEASE_YEAR 2010 #define RUBY_RELEASE_MONTH 2 -#define RUBY_RELEASE_DAY 13 +#define RUBY_RELEASE_DAY 14 #include "ruby/version.h" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/