Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 52 lines (41 sloc) 1.688 kb
2a7794d Samuel Cochran Ruby 1.9.3 p0
authored
1 /**********************************************************************
2
3 id.c -
4
5 $Author: nobu $
6 created at: Thu Jul 12 04:37:51 2007
7
8 Copyright (C) 2004-2007 Koichi Sasada
9
10 **********************************************************************/
11
12 #include "ruby/ruby.h"
13
14 #include "id.h"
15
16 static void
17 Init_id(void)
18 {
19 #undef rb_intern
20 #define rb_intern(str) rb_intern_const(str)
21 rb_encoding *enc = rb_usascii_encoding();
22
23 REGISTER_SYMID(idNULL, "");
24 REGISTER_SYMID(idIFUNC, "<IFUNC>");
25 REGISTER_SYMID(idCFUNC, "<CFUNC>");
26 REGISTER_SYMID(idRespond_to, "respond_to?");
27
28 REGISTER_SYMID(id_core_set_method_alias, "core#set_method_alias");
29 REGISTER_SYMID(id_core_set_variable_alias, "core#set_variable_alias");
30 REGISTER_SYMID(id_core_undef_method, "core#undef_method");
31 REGISTER_SYMID(id_core_define_method, "core#define_method");
32 REGISTER_SYMID(id_core_define_singleton_method, "core#define_singleton_method");
33 REGISTER_SYMID(id_core_set_postexe, "core#set_postexe");
34
35 REGISTER_SYMID(idEach, "each");
36 REGISTER_SYMID(idLength, "length");
37 REGISTER_SYMID(idSize, "size");
38 REGISTER_SYMID(idLambda, "lambda");
39 REGISTER_SYMID(idIntern, "intern");
40 REGISTER_SYMID(idGets, "gets");
41 REGISTER_SYMID(idSucc, "succ");
42 REGISTER_SYMID(idMethodMissing, "method_missing");
43 #if SUPPORT_JOKE
44 REGISTER_SYMID(idBitblt, "bitblt");
45 REGISTER_SYMID(idAnswer, "the_answer_to_life_the_universe_and_everything");
46 #endif
47 REGISTER_SYMID(idSend, "send");
48 REGISTER_SYMID(id__send__, "__send__");
49 REGISTER_SYMID(idInitialize, "initialize");
50 REGISTER_SYMID(idUScore, "_");
51 }
Something went wrong with that request. Please try again.