diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-27 05:20:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-04-27 05:20:40 +0000 |
commit | 6dafb4c910a92b97d026f8984bd661e16ac85899 (patch) | |
tree | d7f339fbeaed18411598c2590a6135ee455186c0 /ruby.c | |
parent | 4eb2c1e1217ac549981cf42b17693d9cc91ba888 (diff) |
ruby.c: moved libdir
* ruby.c (ruby_init_loadpath_safe): moved libdir name inside
LOAD_RELATIVE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -502,6 +502,10 @@ VALUE ruby_archlibdir_path, ruby_prefix_path; void ruby_init_loadpath_safe(int safe_level) { + VALUE load_path, archlibdir = 0; + ID id_initial_load_path_mark; + const char *paths = ruby_initial_load_paths; +#if defined LOAD_RELATIVE #if !defined ENABLE_MULTIARCH # define RUBY_ARCH_PATH "" #elif defined RUBY_ARCH @@ -518,10 +522,6 @@ ruby_init_loadpath_safe(int safe_level) RUBY_ARCH_PATH; const ptrdiff_t libdir_len = (ptrdiff_t)sizeof(libdir) - rb_strlen_lit(RUBY_ARCH_PATH) - 1; - VALUE load_path, archlibdir = 0; - ID id_initial_load_path_mark; - const char *paths = ruby_initial_load_paths; -#if defined LOAD_RELATIVE char *libpath; VALUE sopath; size_t baselen; |