1 /**********************************************************************
6 created at: Thu Jul 12 04:38:07 2007
8 Copyright (C) 2007 Koichi Sasada
10 **********************************************************************/
15 #define ID_SCOPE_SHIFT 3
16 #define ID_SCOPE_MASK 0x07
18 #define ID_INSTANCE 0x01
19 #define ID_GLOBAL 0x03
20 #define ID_ATTRSET 0x04
24 #define ID_INTERNAL ID_JUNK
28 #define symIFUNC ID2SYM(idIFUNC)
29 #define symCFUNC ID2SYM(idCFUNC)
31 enum ruby_method_ids
{
50 idLAST_TOKEN
= tLAST_TOKEN
>> ID_SCOPE_SHIFT
,
68 #define idIntern ((tIntern<<ID_SCOPE_SHIFT)|ID_LOCAL)
69 #define idMethodMissing ((tMethodMissing<<ID_SCOPE_SHIFT)|ID_LOCAL)
70 #define idLength ((tLength<<ID_SCOPE_SHIFT)|ID_LOCAL)
71 #define idGets ((tGets<<ID_SCOPE_SHIFT)|ID_LOCAL)
72 #define idSucc ((tSucc<<ID_SCOPE_SHIFT)|ID_LOCAL)
73 #define idEach ((tEach<<ID_SCOPE_SHIFT)|ID_LOCAL)
74 #define idLambda ((tLambda<<ID_SCOPE_SHIFT)|ID_LOCAL)
75 #define idSend ((tSend<<ID_SCOPE_SHIFT)|ID_LOCAL)
76 #define id__send__ ((t__send__<<ID_SCOPE_SHIFT)|ID_LOCAL)
77 #define idInitialize ((tInitialize<<ID_SCOPE_SHIFT)|ID_LOCAL)
79 #define idBitblt ((tBitblt<<ID_SCOPE_SHIFT)|ID_LOCAL)
80 #define idAnswer ((tAnswer<<ID_SCOPE_SHIFT)|ID_LOCAL)
83 #endif /* RUBY_ID_H */