ruby-changes:30429
From: charliesome <ko1@a...>
Date: Sun, 11 Aug 2013 13:23:17 +0900 (JST)
Subject: [ruby-changes:30429] charliesome:r42508 (trunk): * include/ruby/encoding.h: Reduce ENCODING_INLINE_MAX to 127 as this
charliesome 2013-08-11 13:23:12 +0900 (Sun, 11 Aug 2013) New Revision: 42508 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42508 Log: * include/ruby/encoding.h: Reduce ENCODING_INLINE_MAX to 127 as this should be sufficient to represent all the encodings Ruby supports. Modified files: trunk/ChangeLog trunk/include/ruby/encoding.h Index: include/ruby/encoding.h =================================================================== --- include/ruby/encoding.h (revision 42507) +++ include/ruby/encoding.h (revision 42508) @@ -24,9 +24,9 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/encoding.h#L24 RUBY_SYMBOL_EXPORT_BEGIN -#define ENCODING_INLINE_MAX 1023 +#define ENCODING_INLINE_MAX 127 #define ENCODING_SHIFT (FL_USHIFT+10) -#define ENCODING_MASK (((VALUE)ENCODING_INLINE_MAX)<<ENCODING_SHIFT) /* FL_USER10|FL_USER11|FL_USER12|FL_USER13|FL_USER14|FL_USER15|FL_USER16|FL_USER17|FL_USER18|FL_USER19 */ +#define ENCODING_MASK (((VALUE)ENCODING_INLINE_MAX)<<ENCODING_SHIFT) /* FL_USER10|FL_USER11|FL_USER12|FL_USER13|FL_USER14|FL_USER15|FL_USER16 */ #define ENCODING_SET_INLINED(obj,i) do {\ RBASIC(obj)->flags &= ~ENCODING_MASK;\ Index: ChangeLog =================================================================== --- ChangeLog (revision 42507) +++ ChangeLog (revision 42508) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Aug 11 13:17:00 2013 Charlie Somerville <charliesome@r...> + + * include/ruby/encoding.h: Reduce ENCODING_INLINE_MAX to 127 as this + should be sufficient to represent all the encodings Ruby supports. + Sun Aug 11 11:54:38 2013 Tanaka Akira <akr@f...> * process.c (rb_clock_gettime): New method. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/