Ruby 2.1.5p273(2014-11-13revision48405)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

id.h
Go to the documentation of this file.
1 /* DO NOT EDIT THIS FILE DIRECTLY */
2 /**********************************************************************
3
4 id.h -
5
6 $Author: nobu $
7 created at: Sun Oct 19 21:12:51 2008
8
9 Copyright (C) 2007 Koichi Sasada
10
11 **********************************************************************/
12
13 #ifndef RUBY_ID_H
14 #define RUBY_ID_H
15
16 enum ruby_id_types {
17 RUBY_ID_LOCAL = 0x00,
18 RUBY_ID_INSTANCE = 0x01,
19 RUBY_ID_GLOBAL = 0x03,
20 RUBY_ID_ATTRSET = 0x04,
21 RUBY_ID_CONST = 0x05,
22 RUBY_ID_CLASS = 0x06,
23 RUBY_ID_JUNK = 0x07,
24 RUBY_ID_INTERNAL = RUBY_ID_JUNK,
25 RUBY_ID_SCOPE_SHIFT = 3,
26 RUBY_ID_SCOPE_MASK = ~(~0U<<RUBY_ID_SCOPE_SHIFT)
27 };
28
29 #define ID_SCOPE_SHIFT RUBY_ID_SCOPE_SHIFT
30 #define ID_SCOPE_MASK RUBY_ID_SCOPE_MASK
31 #define ID_LOCAL RUBY_ID_LOCAL
32 #define ID_INSTANCE RUBY_ID_INSTANCE
33 #define ID_GLOBAL RUBY_ID_GLOBAL
34 #define ID_ATTRSET RUBY_ID_ATTRSET
35 #define ID_CONST RUBY_ID_CONST
36 #define ID_CLASS RUBY_ID_CLASS
37 #define ID_JUNK RUBY_ID_JUNK
38 #define ID_INTERNAL RUBY_ID_INTERNAL
39
40 #define ID2ATTRSET(id) (((id)&~ID_SCOPE_MASK)|ID_ATTRSET)
41
42 #define symIFUNC ID2SYM(idIFUNC)
43 #define symCFUNC ID2SYM(idCFUNC)
44
45 #define RUBY_TOKEN_DOT2 128
46 #define RUBY_TOKEN_DOT3 129
47 #define RUBY_TOKEN_UPLUS 130
48 #define RUBY_TOKEN_UMINUS 131
49 #define RUBY_TOKEN_POW 132
50 #define RUBY_TOKEN_DSTAR 133
51 #define RUBY_TOKEN_CMP 134
52 #define RUBY_TOKEN_LSHFT 135
53 #define RUBY_TOKEN_RSHFT 136
54 #define RUBY_TOKEN_LEQ 137
55 #define RUBY_TOKEN_GEQ 138
56 #define RUBY_TOKEN_EQ 139
57 #define RUBY_TOKEN_EQQ 140
58 #define RUBY_TOKEN_NEQ 141
59 #define RUBY_TOKEN_MATCH 142
60 #define RUBY_TOKEN_NMATCH 143
61 #define RUBY_TOKEN_AREF 144
62 #define RUBY_TOKEN_ASET 145
63 #define RUBY_TOKEN_COLON2 146
64 #define RUBY_TOKEN_COLON3 147
65 #define RUBY_TOKEN(t) RUBY_TOKEN_##t
66
67 enum ruby_method_ids {
68 idDot2 = RUBY_TOKEN(DOT2),
69 idDot3 = RUBY_TOKEN(DOT3),
70 idUPlus = RUBY_TOKEN(UPLUS),
71 idUMinus = RUBY_TOKEN(UMINUS),
72 idPow = RUBY_TOKEN(POW),
73 idCmp = RUBY_TOKEN(CMP),
74 idPLUS = '+',
75 idMINUS = '-',
76 idMULT = '*',
77 idDIV = '/',
78 idMOD = '%',
79 idLT = '<',
80 idLTLT = RUBY_TOKEN(LSHFT),
81 idLE = RUBY_TOKEN(LEQ),
82 idGT = '>',
83 idGE = RUBY_TOKEN(GEQ),
84 idEq = RUBY_TOKEN(EQ),
85 idEqq = RUBY_TOKEN(EQQ),
86 idNeq = RUBY_TOKEN(NEQ),
87 idNot = '!',
88 idBackquote = '`',
89 idEqTilde = RUBY_TOKEN(MATCH),
90 idNeqTilde = RUBY_TOKEN(NMATCH),
91 idAREF = RUBY_TOKEN(AREF),
92 idASET = RUBY_TOKEN(ASET),
93 tPRESERVED_ID_BEGIN = 147,
94 idNULL,
95 idEmptyP,
96 idEqlP,
97 idRespond_to,
98 idRespond_to_missing,
99 idIFUNC,
100 idCFUNC,
101 id_core_set_method_alias,
102 id_core_set_variable_alias,
103 id_core_undef_method,
104 id_core_define_method,
105 id_core_define_singleton_method,
106 id_core_set_postexe,
107 id_core_hash_from_ary,
108 id_core_hash_merge_ary,
109 id_core_hash_merge_ptr,
110 id_core_hash_merge_kwd,
111 tPRESERVED_ID_END,
112 tFreeze,
113 tInspect,
114 tIntern,
115 tObject_id,
116 tConst_missing,
117 tMethodMissing,
118 tMethod_added,
119 tSingleton_method_added,
120 tMethod_removed,
121 tSingleton_method_removed,
122 tMethod_undefined,
123 tSingleton_method_undefined,
124 tLength,
125 tSize,
126 tGets,
127 tSucc,
128 tEach,
129 tProc,
130 tLambda,
131 tSend,
132 t__send__,
133 t__attached__,
134 tInitialize,
135 tInitialize_copy,
136 tInitialize_clone,
137 tInitialize_dup,
138 tUScore,
139 #define TOKEN2LOCALID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
140 TOKEN2LOCALID(Freeze),
141 TOKEN2LOCALID(Inspect),
142 TOKEN2LOCALID(Intern),
143 TOKEN2LOCALID(Object_id),
144 TOKEN2LOCALID(Const_missing),
145 TOKEN2LOCALID(MethodMissing),
146 TOKEN2LOCALID(Method_added),
147 TOKEN2LOCALID(Singleton_method_added),
148 TOKEN2LOCALID(Method_removed),
149 TOKEN2LOCALID(Singleton_method_removed),
150 TOKEN2LOCALID(Method_undefined),
151 TOKEN2LOCALID(Singleton_method_undefined),
152 TOKEN2LOCALID(Length),
153 TOKEN2LOCALID(Size),
154 TOKEN2LOCALID(Gets),
155 TOKEN2LOCALID(Succ),
156 TOKEN2LOCALID(Each),
157 TOKEN2LOCALID(Proc),
158 TOKEN2LOCALID(Lambda),
159 TOKEN2LOCALID(Send),
160 TOKEN2LOCALID(__send__),
161 TOKEN2LOCALID(__attached__),
162 TOKEN2LOCALID(Initialize),
163 TOKEN2LOCALID(Initialize_copy),
164 TOKEN2LOCALID(Initialize_clone),
165 TOKEN2LOCALID(Initialize_dup),
166 TOKEN2LOCALID(UScore),
167 tLAST_OP_ID = tPRESERVED_ID_END-1,
168 idLAST_OP_ID = tLAST_OP_ID >> ID_SCOPE_SHIFT
169 };
170
171 #endif /* RUBY_ID_H */
tPRESERVED_ID_END
Definition: id.h:111
tSingleton_method_undefined
Definition: id.h:123
tSingleton_method_removed
Definition: id.h:121
idLAST_OP_ID
Definition: id.h:168
tFreeze
Definition: id.h:112
idMINUS
Definition: id.h:75
idDot3
Definition: id.h:69
idLT
Definition: id.h:79
tMethod_undefined
Definition: id.h:122
id_core_set_variable_alias
Definition: id.h:102
idDIV
Definition: id.h:77
tIntern
Definition: id.h:114
tUScore
Definition: id.h:138
tLength
Definition: id.h:124
idMULT
Definition: id.h:76
idNULL
Definition: id.h:94
idNot
Definition: id.h:87
idLTLT
Definition: id.h:80
idAREF
Definition: id.h:91
idLE
Definition: id.h:81
idUPlus
Definition: id.h:70
idNeq
Definition: id.h:86
RUBY_ID_LOCAL
Definition: id.h:17
id_core_undef_method
Definition: id.h:103
idPLUS
Definition: id.h:74
tMethod_added
Definition: id.h:118
tPRESERVED_ID_BEGIN
Definition: id.h:93
RUBY_ID_GLOBAL
Definition: id.h:19
id_core_hash_merge_ary
Definition: id.h:108
idGT
Definition: id.h:82
idUMinus
Definition: id.h:71
RUBY_ID_INTERNAL
Definition: id.h:24
idASET
Definition: id.h:92
RUBY_ID_ATTRSET
Definition: id.h:20
tGets
Definition: id.h:126
tSend
Definition: id.h:131
idEqlP
Definition: id.h:96
tSingleton_method_added
Definition: id.h:119
tMethodMissing
Definition: id.h:117
idRespond_to_missing
Definition: id.h:98
ruby_id_types
ruby_id_types
Definition: id.h:16
ID_SCOPE_SHIFT
#define ID_SCOPE_SHIFT
Definition: id.h:29
id_core_hash_merge_ptr
Definition: id.h:109
MATCH
#define MATCH(s, p, c)
Definition: date_parse.c:267
tConst_missing
Definition: id.h:116
RUBY_ID_CONST
Definition: id.h:21
tObject_id
Definition: id.h:115
tInitialize_clone
Definition: id.h:136
id_core_define_method
Definition: id.h:104
U
Definition: util.c:792
tInitialize_dup
Definition: id.h:137
idCmp
Definition: id.h:73
tLAST_OP_ID
Definition: id.h:167
idIFUNC
Definition: id.h:99
idCFUNC
Definition: id.h:100
t__attached__
Definition: id.h:133
tEach
Definition: id.h:128
tInitialize_copy
Definition: id.h:135
id_core_hash_merge_kwd
Definition: id.h:110
idMOD
Definition: id.h:78
idGE
Definition: id.h:83
idBackquote
Definition: id.h:88
AREF
#define AREF(s, idx)
Definition: cparse.c:93
RUBY_ID_SCOPE_MASK
Definition: id.h:26
tSucc
Definition: id.h:127
id_core_set_method_alias
Definition: id.h:101
idDot2
Definition: id.h:68
tSize
Definition: id.h:125
tInitialize
Definition: id.h:134
t__send__
Definition: id.h:132
idRespond_to
Definition: id.h:97
id_core_define_singleton_method
Definition: id.h:105
RUBY_ID_CLASS
Definition: id.h:22
tMethod_removed
Definition: id.h:120
idEmptyP
Definition: id.h:95
tProc
Definition: id.h:129
idEqq
Definition: id.h:85
RUBY_TOKEN
#define RUBY_TOKEN(t)
Definition: id.h:65
idPow
Definition: id.h:72
idNeqTilde
Definition: id.h:90
ruby_method_ids
ruby_method_ids
Definition: id.h:67
tLambda
Definition: id.h:130
idEqTilde
Definition: id.h:89
RUBY_ID_SCOPE_SHIFT
Definition: id.h:25
id_core_set_postexe
Definition: id.h:106
tInspect
Definition: id.h:113
RUBY_ID_INSTANCE
Definition: id.h:18
idEq
Definition: id.h:84
TOKEN2LOCALID
#define TOKEN2LOCALID(n)
Definition: id.h:139
id_core_hash_from_ary
Definition: id.h:107
RUBY_ID_JUNK
Definition: id.h:23