From 173976c97c9426aa8d96e53aef6c0e570c5fdfda Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Fri, 14 Oct 1994 13:22:18 +0900 Subject: version 0.52 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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]を返すように. --- string.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 1d96557474..9025668697 100644 --- a/string.c +++ b/string.c @@ -3,7 +3,7 @@ string.c - $Author: matz $ - $Date: 1994/08/12 11:06:44 $ + $Date: 1994/10/14 10:01:01 $ created at: Mon Aug 9 17:12:58 JST 1993 Copyright (C) 1994 Yukihiro Matsumoto @@ -1533,7 +1533,7 @@ Fstr_sum(str, args) } } -extern VALUE C_Kernel; +extern VALUE C_Builtin; extern VALUE M_Comparable; extern VALUE M_Enumerable; @@ -1595,8 +1595,8 @@ Init_String() rb_define_method(C_String, "sum", Fstr_sum, -2); - rb_define_method(C_Kernel, "sub", Fsub, 2); - rb_define_method(C_Kernel, "gsub", Fgsub, 2); + rb_define_method(C_Builtin, "sub", Fsub, 2); + rb_define_method(C_Builtin, "gsub", Fgsub, 2); pr_str = rb_intern("to_s"); } -- cgit v1.2.3