diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-18 01:11:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-02-18 01:11:58 +0000 |
commit | 46cdc66f84b933cce2495f31e1210829d2cddceb (patch) | |
tree | 2a0006354f138fa9bc14b46742864178fd6db353 /ruby.c | |
parent | 97ef7189dd257fa81280b206ca482f4a08bac331 (diff) | |
download | ruby-46cdc66f84b933cce2495f31e1210829d2cddceb.tar.gz |
version.c: move ruby_exec_prefix
* version.c (ruby_exec_prefix): move all path configuration stuffs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -492,9 +492,10 @@ ruby_init_loadpath_safe(int safe_level) #define RUBY_RELATIVE(path, len) rb_str_buf_cat(BASEPATH(), (path), (len)) #else - static const char exec_prefix[] = RUBY_EXEC_PREFIX; + extern const char ruby_exec_prefix[]; + const size_t exec_prefix_len = strlen(ruby_exec_prefix); #define RUBY_RELATIVE(path, len) rubylib_mangled_path((path), (len)) -#define PREFIX_PATH() RUBY_RELATIVE(exec_prefix, sizeof(exec_prefix)-1) +#define PREFIX_PATH() RUBY_RELATIVE(ruby_exec_prefix, exec_prefix_len) #endif load_path = GET_VM()->load_path; |