Sha256: 3a3226799377cb0ec6b6915118f1d54f4e196661b3c4411be42cca970fe78758

Contents?: true

Size: 1.66 KB

Versions: 83

Compression:

Stored size: 1.66 KB

Contents

/**********************************************************************

  id.c - 

  $Author: nobu $
  created at: Thu Jul 12 04:37:51 2007

  Copyright (C) 2004-2007 Koichi Sasada

**********************************************************************/

#include "ruby/ruby.h"
#include "ruby/encoding.h"

#include "id.h"

static void
Init_id(void)
{
#undef rb_intern
#define rb_intern(str) rb_intern_const(str)
    rb_encoding *enc = rb_usascii_encoding();

    REGISTER_SYMID(idNULL, "");
    REGISTER_SYMID(idIFUNC, "<IFUNC>"),
    REGISTER_SYMID(idCFUNC, "<CFUNC>"),
    REGISTER_SYMID(idRespond_to, "respond_to?"),
    REGISTER_SYMID(idThrowState, "#__ThrowState__"),

    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"),

    REGISTER_SYMID(idEach, "each");
    REGISTER_SYMID(idLength, "length");
    REGISTER_SYMID(idLambda, "lambda");
    REGISTER_SYMID(idIntern, "intern");
    REGISTER_SYMID(idGets, "gets");
    REGISTER_SYMID(idSucc, "succ");
    REGISTER_SYMID(idMethodMissing, "method_missing");
#if SUPPORT_JOKE
    REGISTER_SYMID(idBitblt, "bitblt");
    REGISTER_SYMID(idAnswer, "the_answer_to_life_the_universe_and_everything");
#endif
    REGISTER_SYMID(idSend, "send");
    REGISTER_SYMID(id__send__, "__send__");
    REGISTER_SYMID(idInitialize, "initialize");
}

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
rhodes-3.1.1 platform/shared/ruby/id.c
rhodes-3.1.1.beta platform/shared/ruby/id.c
rhodes-3.1.0 platform/shared/ruby/id.c
rhodes-3.1.0.beta.5 platform/shared/ruby/id.c
rhodes-3.1.0.beta.4 platform/shared/ruby/id.c
rhodes-3.1.0.beta.3 platform/shared/ruby/id.c
rhodes-3.1.0.beta.2 platform/shared/ruby/id.c
rhodes-3.1.0.beta.1 platform/shared/ruby/id.c
rhodes-3.0.2 platform/shared/ruby/id.c
rhodes-3.0.2.beta.1 platform/shared/ruby/id.c
rhodes-3.0.1 platform/shared/ruby/id.c
rhodes-3.0.1.beta.8 platform/shared/ruby/id.c
rhodes-3.0.1.beta.7 platform/shared/ruby/id.c
rhodes-3.0.1.beta.6 platform/shared/ruby/id.c
rhodes-3.0.1.beta.5 platform/shared/ruby/id.c
rhodes-3.0.1.beta.4 platform/shared/ruby/id.c
rhodes-3.0.1.beta.3 platform/shared/ruby/id.c
rhodes-3.0.1.beta.2 platform/shared/ruby/id.c
rhodes-3.0.0 platform/shared/ruby/id.c
rhodes-3.0.0.beta.7 platform/shared/ruby/id.c