* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / id.c
blob40c6eeb18830936d56a31deafd7a43c5e03590d9
1 /**********************************************************************
3 id.c -
5 $Author$
6 created at: Thu Jul 12 04:37:51 2007
8 Copyright (C) 2004-2007 Koichi Sasada
10 **********************************************************************/
12 #include "ruby/ruby.h"
14 #include "id.h"
16 static void
17 Init_id(void)
19 #undef rb_intern
20 #define rb_intern(str) rb_intern_const(str)
21 rb_encoding *enc = rb_usascii_encoding();
23 REGISTER_SYMID(idNULL, "");
24 REGISTER_SYMID(idIFUNC, "<IFUNC>"),
25 REGISTER_SYMID(idCFUNC, "<CFUNC>"),
26 REGISTER_SYMID(idRespond_to, "respond_to?"),
27 REGISTER_SYMID(idThrowState, "#__ThrowState__"),
29 REGISTER_SYMID(id_core_set_method_alias, "core#set_method_alias"),
30 REGISTER_SYMID(id_core_set_variable_alias, "core#set_variable_alias"),
31 REGISTER_SYMID(id_core_undef_method, "core#undef_method"),
32 REGISTER_SYMID(id_core_define_method, "core#define_method"),
33 REGISTER_SYMID(id_core_define_singleton_method, "core#define_singleton_method"),
34 REGISTER_SYMID(id_core_set_postexe, "core#set_postexe"),
36 REGISTER_SYMID(idEach, "each");
37 REGISTER_SYMID(idLength, "length");
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");