mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ruby.c (PREFIX_PATH): use RUBY_RELATIVE macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48f2a5fcc4
commit
30014a6156
1 changed files with 1 additions and 1 deletions
2
ruby.c
2
ruby.c
|
@ -432,7 +432,7 @@ ruby_init_loadpath_safe(int safe_level)
|
||||||
#else
|
#else
|
||||||
static const char exec_prefix[] = RUBY_EXEC_PREFIX;
|
static const char exec_prefix[] = RUBY_EXEC_PREFIX;
|
||||||
#define RUBY_RELATIVE(path, len) rubylib_mangled_path(path, len)
|
#define RUBY_RELATIVE(path, len) rubylib_mangled_path(path, len)
|
||||||
#define PREFIX_PATH() rubylib_mangled_path(exec_prefix, sizeof(exec_prefix)-1)
|
#define PREFIX_PATH() RUBY_RELATIVE(exec_prefix, sizeof(exec_prefix)-1)
|
||||||
#endif
|
#endif
|
||||||
load_path = GET_VM()->load_path;
|
load_path = GET_VM()->load_path;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue