ruby-changes:16033
From: yugui <ko1@a...>
Date: Sun, 23 May 2010 22:38:18 +0900 (JST)
Subject: [ruby-changes:16033] Ruby:r27981 (ruby_1_9_1): merges r24205 from trunk into ruby_1_9_1.
yugui 2010-05-23 22:37:59 +0900 (Sun, 23 May 2010) New Revision: 27981 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27981 Log: merges r24205 from trunk into ruby_1_9_1. -- * complex.c (make_patterns): do not use \d. * rational.c (make_patterns): ditto. Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/complex.c branches/ruby_1_9_1/rational.c branches/ruby_1_9_1/version.h Index: ruby_1_9_1/complex.c =================================================================== --- ruby_1_9_1/complex.c (revision 27980) +++ ruby_1_9_1/complex.c (revision 27981) @@ -1054,7 +1054,7 @@ null_string, underscores_pat, an_underscore; #define WS "\\s*" -#define DIGITS "(?:\\d(?:_\\d|\\d)*)" +#define DIGITS "(?:[0-9](?:_[0-9]|[0-9])*)" #define NUMERATOR "(?:" DIGITS "?\\.)?" DIGITS "(?:[eE][-+]?" DIGITS ")?" #define DENOMINATOR DIGITS #define NUMBER "[-+]?" NUMERATOR "(?:\\/" DENOMINATOR ")?" Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 27980) +++ ruby_1_9_1/ChangeLog (revision 27981) @@ -1,3 +1,9 @@ +Sun Jul 19 20:41:24 2009 Tadayoshi Funaba <tadf@d...> + + * complex.c (make_patterns): do not use \d. + + * rational.c (make_patterns): ditto. + Fri Apr 30 03:38:14 2010 NAKAMURA Usaku <usa@r...> * numeric.c (fix_mul): the width of fixnum is same as long's on all Index: ruby_1_9_1/version.h =================================================================== --- ruby_1_9_1/version.h (revision 27980) +++ ruby_1_9_1/version.h (revision 27981) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 425 +#define RUBY_PATCHLEVEL 426 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 Index: ruby_1_9_1/rational.c =================================================================== --- ruby_1_9_1/rational.c (revision 27980) +++ ruby_1_9_1/rational.c (revision 27981) @@ -1313,7 +1313,7 @@ static VALUE rat_pat, an_e_pat, a_dot_pat, underscores_pat, an_underscore; #define WS "\\s*" -#define DIGITS "(?:\\d(?:_\\d|\\d)*)" +#define DIGITS "(?:[0-9](?:_[0-9]|[0-9])*)" #define NUMERATOR "(?:" DIGITS "?\\.)?" DIGITS "(?:[eE][-+]?" DIGITS ")?" #define DENOMINATOR DIGITS #define PATTERN "\\A" WS "([-+])?(" NUMERATOR ")(?:\\/(" DENOMINATOR "))?" WS -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/