* 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
2007-07-12 00:25:46 -04:00
|
|
|
/**********************************************************************
|
|
|
|
|
2009-02-22 09:23:33 -05:00
|
|
|
id.c -
|
* 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
2007-07-12 00:25:46 -04:00
|
|
|
|
|
|
|
$Author$
|
|
|
|
created at: Thu Jul 12 04:37:51 2007
|
|
|
|
|
* blockinlining.c, compile.c, compile.h, debug.c, debug.h,
id.c, insnhelper.h, insns.def, thread.c, thread_pthread.ci,
thread_pthread.h, thread_win32.ci, thread_win32.h, vm.h,
vm_dump.c, vm_evalbody.ci, vm_opts.h: fix comments and
copyright year.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-13 17:13:04 -05:00
|
|
|
Copyright (C) 2004-2007 Koichi Sasada
|
* 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
2007-07-12 00:25:46 -04:00
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#include "ruby/ruby.h"
|
|
|
|
|
|
|
|
#include "id.h"
|
|
|
|
|
2008-08-14 04:57:07 -04:00
|
|
|
static void
|
* 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
2007-07-12 00:25:46 -04:00
|
|
|
Init_id(void)
|
|
|
|
{
|
2008-06-09 05:25:32 -04:00
|
|
|
#undef rb_intern
|
2008-08-15 20:20:31 -04:00
|
|
|
#define rb_intern(str) rb_intern_const(str)
|
2008-08-14 04:57:07 -04:00
|
|
|
rb_encoding *enc = rb_usascii_encoding();
|
|
|
|
|
|
|
|
REGISTER_SYMID(idNULL, "");
|
2009-02-04 21:24:49 -05:00
|
|
|
REGISTER_SYMID(idIFUNC, "<IFUNC>");
|
|
|
|
REGISTER_SYMID(idCFUNC, "<CFUNC>");
|
|
|
|
REGISTER_SYMID(idRespond_to, "respond_to?");
|
2012-12-01 04:16:52 -05:00
|
|
|
REGISTER_SYMID(idRespond_to_missing, "respond_to_missing?");
|
2009-02-04 21:24:49 -05:00
|
|
|
|
|
|
|
REGISTER_SYMID(id_core_set_method_alias, "core#set_method_alias");
|
|
|
|
REGISTER_SYMID(id_core_set_variable_alias, "core#set_variable_alias");
|
|
|
|
REGISTER_SYMID(id_core_undef_method, "core#undef_method");
|
|
|
|
REGISTER_SYMID(id_core_define_method, "core#define_method");
|
|
|
|
REGISTER_SYMID(id_core_define_singleton_method, "core#define_singleton_method");
|
|
|
|
REGISTER_SYMID(id_core_set_postexe, "core#set_postexe");
|
2012-04-11 21:33:34 -04:00
|
|
|
REGISTER_SYMID(id_core_hash_from_ary, "core#hash_from_ary");
|
|
|
|
REGISTER_SYMID(id_core_hash_merge_ary, "core#hash_merge_ary");
|
|
|
|
REGISTER_SYMID(id_core_hash_merge_ptr, "core#hash_merge_ptr");
|
2012-04-28 17:12:05 -04:00
|
|
|
REGISTER_SYMID(id_core_hash_merge_kwd, "core#hash_merge_kwd");
|
2008-08-14 04:57:07 -04:00
|
|
|
|
|
|
|
REGISTER_SYMID(idEach, "each");
|
|
|
|
REGISTER_SYMID(idLength, "length");
|
2009-09-06 04:39:57 -04:00
|
|
|
REGISTER_SYMID(idSize, "size");
|
2012-09-26 05:34:46 -04:00
|
|
|
REGISTER_SYMID(idEmptyP, "empty?");
|
2008-08-14 04:57:07 -04:00
|
|
|
REGISTER_SYMID(idLambda, "lambda");
|
|
|
|
REGISTER_SYMID(idIntern, "intern");
|
|
|
|
REGISTER_SYMID(idGets, "gets");
|
|
|
|
REGISTER_SYMID(idSucc, "succ");
|
|
|
|
REGISTER_SYMID(idMethodMissing, "method_missing");
|
|
|
|
REGISTER_SYMID(idSend, "send");
|
|
|
|
REGISTER_SYMID(id__send__, "__send__");
|
|
|
|
REGISTER_SYMID(idInitialize, "initialize");
|
2012-12-01 04:16:52 -05:00
|
|
|
REGISTER_SYMID(idInitialize_copy, "initialize_copy");
|
|
|
|
REGISTER_SYMID(idInitialize_clone, "initialize_clone");
|
|
|
|
REGISTER_SYMID(idInitialize_dup, "initialize_dup");
|
2010-06-20 03:17:46 -04:00
|
|
|
REGISTER_SYMID(idUScore, "_");
|
* 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
2007-07-12 00:25:46 -04:00
|
|
|
}
|