Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# id.c

Go to the documentation of this file.

    00001 /**********************************************************************
    00002
    00003   id.c -
    00004
    00005   $Author: akr $
    00006   created at: Thu Jul 12 04:37:51 2007
    00007
    00008   Copyright (C) 2004-2007 Koichi Sasada
    00009
    00010 **********************************************************************/
    00011
    00012 #include "ruby/ruby.h"
    00013
    00014 #include "id.h"
    00015
    00016 static void
    00017 Init_id(void)
    00018 {
    00019 #undef rb_intern
    00020 #define rb_intern(str) rb_intern_const(str)
    00021     rb_encoding *enc = rb_usascii_encoding();
    00022
    00023     REGISTER_SYMID(idNULL, "");
    00024     REGISTER_SYMID(idIFUNC, "<IFUNC>");
    00025     REGISTER_SYMID(idCFUNC, "<CFUNC>");
    00026     REGISTER_SYMID(idRespond_to, "respond_to?");
    00027
    00028     REGISTER_SYMID(id_core_set_method_alias,        "core#set_method_alias");
    00029     REGISTER_SYMID(id_core_set_variable_alias,      "core#set_variable_alias");
    00030     REGISTER_SYMID(id_core_undef_method,            "core#undef_method");
    00031     REGISTER_SYMID(id_core_define_method,           "core#define_method");
    00032     REGISTER_SYMID(id_core_define_singleton_method, "core#define_singleton_method");
    00033     REGISTER_SYMID(id_core_set_postexe,             "core#set_postexe");
    00034
    00035     REGISTER_SYMID(idEach, "each");
    00036     REGISTER_SYMID(idLength, "length");
    00037     REGISTER_SYMID(idSize, "size");
    00038     REGISTER_SYMID(idLambda, "lambda");
    00039     REGISTER_SYMID(idIntern, "intern");
    00040     REGISTER_SYMID(idGets, "gets");
    00041     REGISTER_SYMID(idSucc, "succ");
    00042     REGISTER_SYMID(idMethodMissing, "method_missing");
    00043 #if SUPPORT_JOKE
    00044     REGISTER_SYMID(idBitblt, "bitblt");
    00045     REGISTER_SYMID(idAnswer, "the_answer_to_life_the_universe_and_everything");
    00046 #endif
    00047     REGISTER_SYMID(idSend, "send");
    00048     REGISTER_SYMID(id__send__, "__send__");
    00049     REGISTER_SYMID(idInitialize, "initialize");
    00050 }
    00051