[前][次][番号順一覧][スレッド一覧]

ruby-changes:51064

From: nobu <ko1@a...>
Date: Fri, 27 Apr 2018 14:20:48 +0900 (JST)
Subject: [ruby-changes:51064] nobu:r63271 (trunk): ruby.c: moved libdir

nobu	2018-04-27 14:20:40 +0900 (Fri, 27 Apr 2018)

  New Revision: 63271

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63271

  Log:
    ruby.c: moved libdir
    
    * ruby.c (ruby_init_loadpath_safe): moved libdir name inside
      LOAD_RELATIVE.

  Modified files:
    trunk/ruby.c
Index: ruby.c
===================================================================
--- ruby.c	(revision 63270)
+++ ruby.c	(revision 63271)
@@ -502,6 +502,10 @@ VALUE ruby_archlibdir_path, ruby_prefix_ https://github.com/ruby/ruby/blob/trunk/ruby.c#L502
 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) https://github.com/ruby/ruby/blob/trunk/ruby.c#L522
 	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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]