summaryrefslogtreecommitdiff
path: root/dict.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1994-10-14 13:22:18 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:30 +0900
commit173976c97c9426aa8d96e53aef6c0e570c5fdfda (patch)
tree88aeb3cd71db04436cfe10515400d53d7ecb3bd9 /dict.c
parenteed5c920dd5429bac6075e9bc98d82360392b424 (diff)
version 0.52v0_52
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-0.51-0.52.diff.gz Fri Oct 14 13:22:18 1994 Yukihiro Matsumoto (matz@ix-02) * version 0.52: ……なんてこったい. * eval.c(rb_call): returnの処理が間違っていたので, マシンによって はreturnで関数を終了するだけでなくtoplevelまでつき抜けていた. * object.c: Builtinクラスを新設. 組み込み関数をKernelから移した. nilが組み込み関数を理解するとトラブルの元である. * dbm.c: Dictと同様にeachが[key,value]を返すように.
Diffstat (limited to 'dict.c')
-rw-r--r--dict.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dict.c b/dict.c
index 19df65bf0a..419918f3a4 100644
--- a/dict.c
+++ b/dict.c
@@ -3,7 +3,7 @@
dict.c -
$Author: matz $
- $Date: 1994/08/12 04:47:13 $
+ $Date: 1994/10/14 10:00:52 $
created at: Mon Nov 22 18:51:18 JST 1993
Copyright (C) 1994 Yukihiro Matsumoto
@@ -523,7 +523,7 @@ Fsetenv(obj, name, value)
Init_Dict()
{
- extern VALUE C_Kernel;
+ extern VALUE C_Builtin;
extern VALUE M_Enumerable;
static VALUE envtbl;
@@ -578,6 +578,6 @@ Init_Dict()
envtbl = obj_alloc(C_EnvDict);
rb_define_variable("$ENV", &envtbl, Qnil, rb_readonly_hook);
- rb_define_method(C_Kernel, "getenv", Fgetenv, 1);
- rb_define_method(C_Kernel, "setenv", Fsetenv, 2);
+ rb_define_method(C_Builtin, "getenv", Fgetenv, 1);
+ rb_define_method(C_Builtin, "setenv", Fsetenv, 2);
}