summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1994-11-22 01:22:30 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:30 +0900
commit4dfd93c72a9a221c5575c5888483f2fb55c82117 (patch)
treed31f646aef5fdfda2869a40f7758a12158976602 /eval.c
parentc31025779da3020b9d1e9ad4c920e76b6b97d5fd (diff)
version 0.56v0_56
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.55-0.56.diff.gz
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index 85bc3897f3..84356cf1a0 100644
--- a/eval.c
+++ b/eval.c
@@ -3,7 +3,7 @@
eval.c -
$Author: matz $
- $Date: 1994/11/01 08:27:55 $
+ $Date: 1994/11/22 01:22:33 $
created at: Thu Jun 10 14:22:17 JST 1993
Copyright (C) 1994 Yukihiro Matsumoto
@@ -2097,13 +2097,15 @@ extern VALUE C_Kernel;
Init_load()
{
- extern VALUE rb_check_str();
char *path;
- rb_define_variable("$LOAD_PATH", &rb_load_path, Qnil, rb_check_str);
rb_load_path = ary_new();
- rb_define_variable("$LOAD_FILES", &rb_load_path, Qnil, rb_readonly_hook);
+ rb_define_variable("$:", &rb_load_path, Qnil, rb_readonly_hook);
+ rb_define_variable("$LOAD_PATH", &rb_load_path, Qnil, rb_readonly_hook);
+
rb_loadfiles = ary_new();
+ rb_define_variable("$\"", &rb_load_path, Qnil, rb_readonly_hook);
+ rb_define_variable("$LOAD_FILES", &rb_load_path, Qnil, rb_readonly_hook);
addpath(getenv("RUBYLIB"));
addpath(RUBY_LIB);