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 (patch) | |
tree | 46a96ea9047262f1186214dcede563bfbb879be2 /internal.h | |
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
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 3b1266fe91..82de64fa60 100644 --- a/internal.h +++ b/internal.h @@ -1187,7 +1187,7 @@ VALUE rb_attr_delete(VALUE, ID); VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef); /* version.c */ -extern VALUE ruby_engine_name; +extern const char ruby_engine[]; /* vm_insnhelper.h */ rb_serial_t rb_next_class_serial(void); |