* parse.y (parser_read_escape): remove C99/gcc-ism.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2007-11-08 03:14:16 +00:00
Родитель baae1c4075
Коммит 219d2315af
3 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -1,11 +1,17 @@
Thu Nov 8 12:12:10 2007 NAKAMURA Usaku <usa@ruby-lang.org>
* parse.y (parser_read_escape): remove C99/gcc-ism.
Thu Nov 8 07:54:22 UTC 2007 David Flanagan <davidflanagan@ruby-lang.org>
* parse.y: patch, based on Nobu's, work to support \u escapes
* parse.y: patch, based on Nobu's, work to support \u escapes
also modifications for better coderange detection
* test/ruby/test_unicode_escapes.rb: test cases
* test/ruby/test_mixed_unicode_escapes.rb: mixed encoding test cases
Thu Nov 8 07:14:37 UTC 2007 David Flanagan <davidflanagan@ruby-lang.org>
* parse.y (rb_intern3): commented out broken code that prevented
* parse.y (rb_intern3): commented out broken code that prevented
correct interning of multi-byte symbols. Without this patch
:x==:x is false when x is a multi-byte character.

Просмотреть файл

@ -5162,8 +5162,8 @@ parser_read_escape(struct parser_params *parser, int flags,
goto eof;
}
if ((c = nextc()) == '\\') {
*has8bit = 1;
int tmp;
*has8bit = 1;
return read_escape(flags|ESCAPE_META, &tmp, &tmp, encp) | 0x80;
}
else if (c == -1) goto eof;

Просмотреть файл

@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
#define RUBY_RELEASE_DATE "2007-11-07"
#define RUBY_RELEASE_DATE "2007-11-08"
#define RUBY_VERSION_CODE 190
#define RUBY_RELEASE_CODE 20071107
#define RUBY_RELEASE_CODE 20071108
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2007
#define RUBY_RELEASE_MONTH 11
#define RUBY_RELEASE_DAY 7
#define RUBY_RELEASE_DAY 8
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];