зеркало из https://github.com/github/ruby.git
version.c: use str_new_static
* version.c (MKSTR): always make from static strings for sizeof operator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c5e8342d4f
Коммит
d3bce79183
|
@ -18,7 +18,7 @@
|
|||
#endif
|
||||
|
||||
#define PRINT(type) puts(ruby_##type)
|
||||
#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1))
|
||||
#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new_static(ruby_##type, sizeof(ruby_##type)-1))
|
||||
|
||||
const int ruby_api_version[] = {
|
||||
RUBY_API_VERSION_MAJOR,
|
||||
|
|
Загрузка…
Ссылка в новой задаче