From 6b6bf4dd481f744faf54b5efcda5f32e4565bd7d Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 12 Jul 2007 04:25:46 +0000 Subject: * blockinlining.c: remove "yarv" prefix. * array.c, numeric.c: ditto. * insnhelper.ci, insns.def, vm_evalbody.ci: ditto. * yarvcore.c: removed. * yarvcore.h: renamed to core.h. * cont.c, debug.c, error.c, process.c, signal.c : ditto. * ext/probeprofiler/probeprofiler.c: ditto. * id.c, id.h: added. * inits.c: ditto. * compile.c: rename internal functions. * compile.h: fix debug flag. * eval.c, object.c, vm.c: remove ruby_top_self. use rb_vm_top_self() instead. * eval_intern.h, eval_load: ditto. * gc.c: rename yarv_machine_stack_mark() to rb_gc_mark_machine_stack(). * insnhelper.h: remove unused macros. * iseq.c: add iseq_compile() to create iseq object from source string. * proc.c: rename a internal function. * template/insns.inc.tmpl: remove YARV prefix. * thread.c: * vm.c (rb_iseq_eval): added. * vm.c: move some functions from yarvcore.c. * vm_dump.c: fix to remove compiler warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 6264b163c9..bcff31eebc 100644 --- a/object.c +++ b/object.c @@ -792,13 +792,6 @@ nil_plus(VALUE x, VALUE y) } #endif -static VALUE -main_to_s(VALUE obj) -{ - return rb_str_new2("main"); -} - - /*********************************************************************** * Document-class: TrueClass * @@ -2206,8 +2199,6 @@ boot_defclass(const char *name, VALUE super) return obj; } -VALUE ruby_top_self; - /* * Document-class: Class * @@ -2442,10 +2433,6 @@ Init_Object(void) rb_cData = rb_define_class("Data", rb_cObject); rb_undef_alloc_func(rb_cData); - rb_global_variable(&ruby_top_self); - ruby_top_self = rb_obj_alloc(rb_cObject); - rb_define_singleton_method(ruby_top_self, "to_s", main_to_s, 0); - rb_cTrueClass = rb_define_class("TrueClass", rb_cObject); rb_define_method(rb_cTrueClass, "to_s", true_to_s, 0); rb_define_method(rb_cTrueClass, "&", true_and, 1); -- cgit v1.2.3