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

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:
nobu 2015-06-09 07:25:44 +00:00
parent c5e8342d4f
commit d3bce79183

View file

@ -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,