diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-29 02:25:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-29 02:25:12 +0000 |
commit | fc0c2d1cc2f4ec1fb15c73e91cc8aa8d19854c8a () | |
tree | 46a96ea9047262f1186214dcede563bfbb879be2 /version.c | |
parent | d6beaf3215602eac993bebc1aa1bf9b21c947d63 (diff) |
version.c: remove ruby_engine_name
* ruby.c (load_file_internal, ruby_process_options): share ruby_engine instead of literal strings. * version.c (Init_version): remove internal `ruby_engine_name`, but set the VM program name in addition to the global constant. * vm_backtrace.c (location_to_str, oldbt_init): use th eVM program name always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | version.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -33,7 +33,6 @@ const int ruby_level = RUBY_LEVEL; const char ruby_description[] = RUBY_DESCRIPTION; const char ruby_copyright[] = RUBY_COPYRIGHT; const char ruby_engine[] = "ruby"; -VALUE ruby_engine_name = Qnil; /*! Defines platform-depended Ruby-level constants */ void @@ -42,6 +41,7 @@ Init_version(void) enum {ruby_level = RUBY_LEVEL}; enum {ruby_revision = RUBY_REVISION}; VALUE version; /* * The running version of ruby */ @@ -75,6 +75,7 @@ Init_version(void) * The engine or interpreter this ruby uses. */ rb_define_global_const("RUBY_ENGINE", ruby_engine_name = MKSTR(engine)); /* * The version of the engine or interpreter this ruby uses. */ |