* transcode.c (econv_init): accept Encoding object as source_encoding
[ruby-svn.git] / id.c
blobc34f0c8dd9d55acc92f47c9c899aaec4e07a6ba2
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_intern2(str, strlen(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");