1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* version.c (MKSTR): make US-ASCII. [ruby-dev:34010]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-03-10 06:53:50 +00:00
parent 16f09af48b
commit 2a07423f9c
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Mar 10 15:53:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* version.c (MKSTR): make US-ASCII. [ruby-dev:34010]
Mon Mar 10 02:08:21 2008 NARUSE, Yui <naruse@ruby-lang.org> Mon Mar 10 02:08:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_str_index): if t == s + pos, the character beginning * string.c (rb_str_index): if t == s + pos, the character beginning

View file

@ -14,7 +14,7 @@
#include <stdio.h> #include <stdio.h>
#define PRINT(type) puts(ruby_##type) #define PRINT(type) puts(ruby_##type)
#define MKSTR(type) rb_obj_freeze(rb_str_new(ruby_##type, sizeof(ruby_##type)-1)) #define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1))
const char ruby_version[] = RUBY_VERSION; const char ruby_version[] = RUBY_VERSION;
const char ruby_release_date[] = RUBY_RELEASE_DATE; const char ruby_release_date[] = RUBY_RELEASE_DATE;