Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 501 lines (453 sloc) 15.187 kb
fedf489 2000-05-01
matz authored
1 /**********************************************************************
3db12e8 Initial revision
matz authored
2
3 node.h -
4
5 $Author$
6 created at: Fri May 28 15:14:02 JST 1993
7
a25fbe3 * encoding.c: provide basic features for M17N.
matz authored
8 Copyright (C) 1993-2007 Yukihiro Matsumoto
3db12e8 Initial revision
matz authored
9
fedf489 2000-05-01
matz authored
10 **********************************************************************/
3db12e8 Initial revision
matz authored
11
2b59258 Nobuyoshi Nakada * include/ruby: moved public headers.
nobu authored
12 #ifndef RUBY_NODE_H
13 #define RUBY_NODE_H 1
3db12e8 Initial revision
matz authored
14
0d684be 19991029
matz authored
15 #if defined(__cplusplus)
16 extern "C" {
2b59258 Nobuyoshi Nakada * include/ruby: moved public headers.
nobu authored
17 #if 0
18 } /* satisfy cc-mode */
19 #endif
0d684be 19991029
matz authored
20 #endif
21
3db12e8 Initial revision
matz authored
22 enum node_type {
23 NODE_SCOPE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
24 #define NODE_SCOPE NODE_SCOPE
3db12e8 Initial revision
matz authored
25 NODE_BLOCK,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
26 #define NODE_BLOCK NODE_BLOCK
3db12e8 Initial revision
matz authored
27 NODE_IF,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
28 #define NODE_IF NODE_IF
3db12e8 Initial revision
matz authored
29 NODE_CASE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
30 #define NODE_CASE NODE_CASE
3db12e8 Initial revision
matz authored
31 NODE_WHEN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
32 #define NODE_WHEN NODE_WHEN
3db12e8 Initial revision
matz authored
33 NODE_OPT_N,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
34 #define NODE_OPT_N NODE_OPT_N
3db12e8 Initial revision
matz authored
35 NODE_WHILE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
36 #define NODE_WHILE NODE_WHILE
3db12e8 Initial revision
matz authored
37 NODE_UNTIL,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
38 #define NODE_UNTIL NODE_UNTIL
3db12e8 Initial revision
matz authored
39 NODE_ITER,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
40 #define NODE_ITER NODE_ITER
3db12e8 Initial revision
matz authored
41 NODE_FOR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
42 #define NODE_FOR NODE_FOR
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
43 NODE_BREAK,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
44 #define NODE_BREAK NODE_BREAK
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
45 NODE_NEXT,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
46 #define NODE_NEXT NODE_NEXT
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
47 NODE_REDO,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
48 #define NODE_REDO NODE_REDO
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
49 NODE_RETRY,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
50 #define NODE_RETRY NODE_RETRY
3db12e8 Initial revision
matz authored
51 NODE_BEGIN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
52 #define NODE_BEGIN NODE_BEGIN
3db12e8 Initial revision
matz authored
53 NODE_RESCUE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
54 #define NODE_RESCUE NODE_RESCUE
3db12e8 Initial revision
matz authored
55 NODE_RESBODY,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
56 #define NODE_RESBODY NODE_RESBODY
3db12e8 Initial revision
matz authored
57 NODE_ENSURE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
58 #define NODE_ENSURE NODE_ENSURE
3db12e8 Initial revision
matz authored
59 NODE_AND,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
60 #define NODE_AND NODE_AND
3db12e8 Initial revision
matz authored
61 NODE_OR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
62 #define NODE_OR NODE_OR
3db12e8 Initial revision
matz authored
63 NODE_MASGN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
64 #define NODE_MASGN NODE_MASGN
3db12e8 Initial revision
matz authored
65 NODE_LASGN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
66 #define NODE_LASGN NODE_LASGN
3db12e8 Initial revision
matz authored
67 NODE_DASGN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
68 #define NODE_DASGN NODE_DASGN
e4b53b2 2000-02-01
matz authored
69 NODE_DASGN_CURR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
70 #define NODE_DASGN_CURR NODE_DASGN_CURR
3db12e8 Initial revision
matz authored
71 NODE_GASGN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
72 #define NODE_GASGN NODE_GASGN
3db12e8 Initial revision
matz authored
73 NODE_IASGN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
74 #define NODE_IASGN NODE_IASGN
72f2d2a * parse.y (rb_compose_ivar2): function to create a new ivar2
matz authored
75 NODE_IASGN2,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
76 #define NODE_IASGN2 NODE_IASGN2
8e48dc1 19991117
matz authored
77 NODE_CDECL,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
78 #define NODE_CDECL NODE_CDECL
a122fce matz
matz authored
79 NODE_CVASGN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
80 #define NODE_CVASGN NODE_CVASGN
688169f 2000-03-23
matz authored
81 NODE_CVDECL,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
82 #define NODE_CVDECL NODE_CVDECL
3db12e8 Initial revision
matz authored
83 NODE_OP_ASGN1,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
84 #define NODE_OP_ASGN1 NODE_OP_ASGN1
3db12e8 Initial revision
matz authored
85 NODE_OP_ASGN2,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
86 #define NODE_OP_ASGN2 NODE_OP_ASGN2
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
87 NODE_OP_ASGN_AND,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
88 #define NODE_OP_ASGN_AND NODE_OP_ASGN_AND
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
89 NODE_OP_ASGN_OR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
90 #define NODE_OP_ASGN_OR NODE_OP_ASGN_OR
3db12e8 Initial revision
matz authored
91 NODE_CALL,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
92 #define NODE_CALL NODE_CALL
3db12e8 Initial revision
matz authored
93 NODE_FCALL,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
94 #define NODE_FCALL NODE_FCALL
3db12e8 Initial revision
matz authored
95 NODE_VCALL,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
96 #define NODE_VCALL NODE_VCALL
3db12e8 Initial revision
matz authored
97 NODE_SUPER,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
98 #define NODE_SUPER NODE_SUPER
3db12e8 Initial revision
matz authored
99 NODE_ZSUPER,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
100 #define NODE_ZSUPER NODE_ZSUPER
3db12e8 Initial revision
matz authored
101 NODE_ARRAY,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
102 #define NODE_ARRAY NODE_ARRAY
3db12e8 Initial revision
matz authored
103 NODE_ZARRAY,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
104 #define NODE_ZARRAY NODE_ZARRAY
1b0f90c * parse.y (string_content): turn off NODE_NEWLINE flag to avoid
matz authored
105 NODE_VALUES,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
106 #define NODE_VALUES NODE_VALUES
3db12e8 Initial revision
matz authored
107 NODE_HASH,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
108 #define NODE_HASH NODE_HASH
3db12e8 Initial revision
matz authored
109 NODE_RETURN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
110 #define NODE_RETURN NODE_RETURN
3db12e8 Initial revision
matz authored
111 NODE_YIELD,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
112 #define NODE_YIELD NODE_YIELD
3db12e8 Initial revision
matz authored
113 NODE_LVAR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
114 #define NODE_LVAR NODE_LVAR
3db12e8 Initial revision
matz authored
115 NODE_DVAR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
116 #define NODE_DVAR NODE_DVAR
3db12e8 Initial revision
matz authored
117 NODE_GVAR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
118 #define NODE_GVAR NODE_GVAR
3db12e8 Initial revision
matz authored
119 NODE_IVAR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
120 #define NODE_IVAR NODE_IVAR
688169f 2000-03-23
matz authored
121 NODE_CONST,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
122 #define NODE_CONST NODE_CONST
3db12e8 Initial revision
matz authored
123 NODE_CVAR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
124 #define NODE_CVAR NODE_CVAR
3db12e8 Initial revision
matz authored
125 NODE_NTH_REF,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
126 #define NODE_NTH_REF NODE_NTH_REF
3db12e8 Initial revision
matz authored
127 NODE_BACK_REF,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
128 #define NODE_BACK_REF NODE_BACK_REF
3db12e8 Initial revision
matz authored
129 NODE_MATCH,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
130 #define NODE_MATCH NODE_MATCH
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
131 NODE_MATCH2,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
132 #define NODE_MATCH2 NODE_MATCH2
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
133 NODE_MATCH3,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
134 #define NODE_MATCH3 NODE_MATCH3
3db12e8 Initial revision
matz authored
135 NODE_LIT,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
136 #define NODE_LIT NODE_LIT
3db12e8 Initial revision
matz authored
137 NODE_STR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
138 #define NODE_STR NODE_STR
3db12e8 Initial revision
matz authored
139 NODE_DSTR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
140 #define NODE_DSTR NODE_DSTR
3db12e8 Initial revision
matz authored
141 NODE_XSTR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
142 #define NODE_XSTR NODE_XSTR
3db12e8 Initial revision
matz authored
143 NODE_DXSTR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
144 #define NODE_DXSTR NODE_DXSTR
3db12e8 Initial revision
matz authored
145 NODE_EVSTR,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
146 #define NODE_EVSTR NODE_EVSTR
3db12e8 Initial revision
matz authored
147 NODE_DREGX,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
148 #define NODE_DREGX NODE_DREGX
3db12e8 Initial revision
matz authored
149 NODE_DREGX_ONCE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
150 #define NODE_DREGX_ONCE NODE_DREGX_ONCE
3db12e8 Initial revision
matz authored
151 NODE_ARGS,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
152 #define NODE_ARGS NODE_ARGS
0fe7204 Koichi Sasada * parse.y, node.h, compile.c: change node tree structure. a purpose
ko1 authored
153 NODE_ARGS_AUX,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
154 #define NODE_ARGS_AUX NODE_ARGS_AUX
0fe7204 Koichi Sasada * parse.y, node.h, compile.c: change node tree structure. a purpose
ko1 authored
155 NODE_OPT_ARG,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
156 #define NODE_OPT_ARG NODE_OPT_ARG
9b383bd * sprintf.c (rb_str_format): allow %c to print one character
matz authored
157 NODE_POSTARG,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
158 #define NODE_POSTARG NODE_POSTARG
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
159 NODE_ARGSCAT,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
160 #define NODE_ARGSCAT NODE_ARGSCAT
dde62bc 2000-01-17
matz authored
161 NODE_ARGSPUSH,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
162 #define NODE_ARGSPUSH NODE_ARGSPUSH
e9b5878 * eval.c (avalue_splat): new function to do unary * (splat)
matz authored
163 NODE_SPLAT,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
164 #define NODE_SPLAT NODE_SPLAT
8a4abe4 * parse.y (stmt): rhs of multiple assignment should not be
matz authored
165 NODE_TO_ARY,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
166 #define NODE_TO_ARY NODE_TO_ARY
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
167 NODE_BLOCK_ARG,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
168 #define NODE_BLOCK_ARG NODE_BLOCK_ARG
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
169 NODE_BLOCK_PASS,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
170 #define NODE_BLOCK_PASS NODE_BLOCK_PASS
3db12e8 Initial revision
matz authored
171 NODE_DEFN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
172 #define NODE_DEFN NODE_DEFN
3db12e8 Initial revision
matz authored
173 NODE_DEFS,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
174 #define NODE_DEFS NODE_DEFS
3db12e8 Initial revision
matz authored
175 NODE_ALIAS,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
176 #define NODE_ALIAS NODE_ALIAS
3db12e8 Initial revision
matz authored
177 NODE_VALIAS,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
178 #define NODE_VALIAS NODE_VALIAS
3db12e8 Initial revision
matz authored
179 NODE_UNDEF,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
180 #define NODE_UNDEF NODE_UNDEF
3db12e8 Initial revision
matz authored
181 NODE_CLASS,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
182 #define NODE_CLASS NODE_CLASS
3db12e8 Initial revision
matz authored
183 NODE_MODULE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
184 #define NODE_MODULE NODE_MODULE
3db12e8 Initial revision
matz authored
185 NODE_SCLASS,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
186 #define NODE_SCLASS NODE_SCLASS
3db12e8 Initial revision
matz authored
187 NODE_COLON2,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
188 #define NODE_COLON2 NODE_COLON2
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
189 NODE_COLON3,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
190 #define NODE_COLON3 NODE_COLON3
3db12e8 Initial revision
matz authored
191 NODE_DOT2,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
192 #define NODE_DOT2 NODE_DOT2
3db12e8 Initial revision
matz authored
193 NODE_DOT3,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
194 #define NODE_DOT3 NODE_DOT3
3db12e8 Initial revision
matz authored
195 NODE_FLIP2,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
196 #define NODE_FLIP2 NODE_FLIP2
3db12e8 Initial revision
matz authored
197 NODE_FLIP3,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
198 #define NODE_FLIP3 NODE_FLIP3
3db12e8 Initial revision
matz authored
199 NODE_SELF,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
200 #define NODE_SELF NODE_SELF
3db12e8 Initial revision
matz authored
201 NODE_NIL,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
202 #define NODE_NIL NODE_NIL
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
203 NODE_TRUE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
204 #define NODE_TRUE NODE_TRUE
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
205 NODE_FALSE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
206 #define NODE_FALSE NODE_FALSE
225cd9f * parse.y (opt_rescue): use NODE_ERRINFO() instead of
matz authored
207 NODE_ERRINFO,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
208 #define NODE_ERRINFO NODE_ERRINFO
3db12e8 Initial revision
matz authored
209 NODE_DEFINED,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
210 #define NODE_DEFINED NODE_DEFINED
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
211 NODE_POSTEXE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
212 #define NODE_POSTEXE NODE_POSTEXE
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
213 NODE_ALLOCA,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
214 #define NODE_ALLOCA NODE_ALLOCA
03581d5 matz
matz authored
215 NODE_BMETHOD,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
216 #define NODE_BMETHOD NODE_BMETHOD
dde62bc 2000-01-17
matz authored
217 NODE_MEMO,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
218 #define NODE_MEMO NODE_MEMO
87beea4 * enum.c (enum_inject): new method.
matz authored
219 NODE_IFUNC,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
220 #define NODE_IFUNC NODE_IFUNC
d4f2f6a Nobuyoshi Nakada * eval.c (rb_eval): added NODE_DSYM, symbol literal with
nobu authored
221 NODE_DSYM,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
222 #define NODE_DSYM NODE_DSYM
86db656 Nobuyoshi Nakada * node.h (NODE_ATTRASGN): new node, assignment to attribute.
nobu authored
223 NODE_ATTRASGN,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
224 #define NODE_ATTRASGN NODE_ATTRASGN
136b284 * parse.y: remove global variables ruby_eval_tree and
matz authored
225 NODE_PRELUDE,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
226 #define NODE_PRELUDE NODE_PRELUDE
6c0cc67 Nobuyoshi Nakada * eval.c (rb_eval): [EXPERIMENTAL] NODE_LAMBDA implemented.
nobu authored
227 NODE_LAMBDA,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
228 #define NODE_LAMBDA NODE_LAMBDA
a3e1b1c Koichi Sasada * Merge YARV
ko1 authored
229 NODE_OPTBLOCK,
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
230 #define NODE_OPTBLOCK NODE_OPTBLOCK
fedf489 2000-05-01
matz authored
231 NODE_LAST
e8b0aa4 Nobuyoshi Nakada * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
nobu authored
232 #define NODE_LAST NODE_LAST
3db12e8 Initial revision
matz authored
233 };
234
235 typedef struct RNode {
698fe54 Nobuyoshi Nakada * node.h (RNode): match the type of flags to RBasic, and renamed
nobu authored
236 VALUE flags;
237 VALUE nd_reserved; /* ex nd_file */
3db12e8 Initial revision
matz authored
238 union {
239 struct RNode *node;
240 ID id;
241 VALUE value;
fd06a2a * eval.c (block_pass): should not downgrade safe level.
matz authored
242 VALUE (*cfunc)(ANYARGS);
3db12e8 Initial revision
matz authored
243 ID *tbl;
244 } u1;
245 union {
246 struct RNode *node;
247 ID id;
d0588e9 Akinori MUSHA * node.h (struct RNode): Change argc from int to long. Otherwize
knu authored
248 long argc;
3db12e8 Initial revision
matz authored
249 VALUE value;
250 } u2;
251 union {
252 struct RNode *node;
253 ID id;
8b1de0b 2000-05-24
matz authored
254 long state;
94664d6 Koichi Sasada * node.h, vm_core.h, variable.c: rename global_entry to rb_global_entry.
ko1 authored
255 struct rb_global_entry *entry;
8b1de0b 2000-05-24
matz authored
256 long cnt;
3db12e8 Initial revision
matz authored
257 VALUE value;
258 } u3;
259 } NODE;
260
261 #define RNODE(obj) (R_CAST(RNode)(obj))
262
588d870 * include/ruby/node.h (NODE_FL_NEWLINE): renamed from NODE_NEWLINE
matz authored
263 /* 0..4:T_TYPES, 5:FL_MARK, 6:reserved, 7:NODE_FL_NEWLINE */
264 #define NODE_FL_NEWLINE (((VALUE)1)<<7)
7dbfe89 Shugo Maeda * compile.c (compile_cpath, iseq_compile_each): reverted
shugo authored
265 #define NODE_FL_CREF_PUSHED_BY_EVAL NODE_FL_NEWLINE
3db12e8 Initial revision
matz authored
266
a6e5b6d akr * include/ruby/node.h: make node flags as VALUE type.
akr authored
267 #define NODE_TYPESHIFT 8
268 #define NODE_TYPEMASK (((VALUE)0x7f)<<NODE_TYPESHIFT)
288ceae * re.c (rb_reg_initialize_m): should raise exception instead of
matz authored
269
270 #define nd_type(n) ((int) (((RNODE(n))->flags & NODE_TYPEMASK)>>NODE_TYPESHIFT))
018837b * node.h (NODE_TYPESHIFT): allow 4 more bits for line numbers.
matz authored
271 #define nd_set_type(n,t) \
6bc1937 akr * node.h: parenthesize macro arguments.
akr authored
272 RNODE(n)->flags=((RNODE(n)->flags&~NODE_TYPEMASK)|((((unsigned long)(t))<<NODE_TYPESHIFT)&NODE_TYPEMASK))
002517a * parse.y (newline_node): do not use NODE_NEWLINE node anymore,
matz authored
273
a6e5b6d akr * include/ruby/node.h: make node flags as VALUE type.
akr authored
274 #define NODE_LSHIFT (NODE_TYPESHIFT+7)
275 #define NODE_LMASK (((SIGNED_VALUE)1<<(sizeof(VALUE)*CHAR_BIT-NODE_LSHIFT))-1)
4f041da Nobuyoshi Nakada * debug.c, parse.y: fixed types.
nobu authored
276 #define nd_line(n) (int)(RNODE(n)->flags>>NODE_LSHIFT)
3db12e8 Initial revision
matz authored
277 #define nd_set_line(n,l) \
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
278 RNODE(n)->flags=((RNODE(n)->flags&~(-1<<NODE_LSHIFT))|(((l)&NODE_LMASK)<<NODE_LSHIFT))
3db12e8 Initial revision
matz authored
279
280 #define nd_head u1.node
281 #define nd_alen u2.argc
282 #define nd_next u3.node
283
284 #define nd_cond u1.node
285 #define nd_body u2.node
286 #define nd_else u3.node
287
288 #define nd_orig u3.value
289
290 #define nd_resq u2.node
291 #define nd_ensr u3.node
292
293 #define nd_1st u1.node
294 #define nd_2nd u2.node
295
296 #define nd_stts u1.node
297
298 #define nd_entry u3.entry
299 #define nd_vid u1.id
300 #define nd_cflag u2.id
301 #define nd_cval u3.value
302
a3e1b1c Koichi Sasada * Merge YARV
ko1 authored
303 #define nd_oid u1.id
3db12e8 Initial revision
matz authored
304 #define nd_cnt u3.cnt
305 #define nd_tbl u1.tbl
306
307 #define nd_var u1.node
308 #define nd_iter u3.node
309
310 #define nd_value u2.node
311 #define nd_aid u3.id
312
313 #define nd_lit u1.value
314
0fe7204 Koichi Sasada * parse.y, node.h, compile.c: change node tree structure. a purpose
ko1 authored
315 #define nd_frml u2.argc
316 #define nd_rest u1.id
3db12e8 Initial revision
matz authored
317 #define nd_opt u1.node
0fe7204 Koichi Sasada * parse.y, node.h, compile.c: change node tree structure. a purpose
ko1 authored
318 #define nd_pid u1.id
319 #define nd_plen u2.argc
3db12e8 Initial revision
matz authored
320
321 #define nd_recv u1.node
322 #define nd_mid u2.id
323 #define nd_args u3.node
324
a3e1b1c Koichi Sasada * Merge YARV
ko1 authored
325 #define nd_noex u3.id
3db12e8 Initial revision
matz authored
326 #define nd_defn u3.node
327
328 #define nd_cfnc u1.cfunc
329 #define nd_argc u2.argc
330
884efe7 Nobuyoshi Nakada * node.h (nd_cpath): nested class/module declaration.
nobu authored
331 #define nd_cpath u1.node
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
332 #define nd_super u3.node
3db12e8 Initial revision
matz authored
333
334 #define nd_modl u1.id
335 #define nd_clss u1.value
336
337 #define nd_beg u1.node
338 #define nd_end u2.node
339 #define nd_state u3.state
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
340 #define nd_rval u2.value
3db12e8 Initial revision
matz authored
341
342 #define nd_nth u2.argc
343
344 #define nd_tag u1.id
345 #define nd_tval u2.value
346
a3e1b1c Koichi Sasada * Merge YARV
ko1 authored
347 #define nd_visi u2.argc
348
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
349 #define NEW_NODE(t,a0,a1,a2) rb_node_newnode((t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2))
350
bb7a2d4 Koichi Sasada * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
ko1 authored
351 #define NEW_DEFN(i,a,d,p) NEW_NODE(NODE_DEFN,0,i,NEW_SCOPE(a,d))
352 #define NEW_DEFS(r,i,a,d) NEW_NODE(NODE_DEFS,r,i,NEW_SCOPE(a,d))
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
353 #define NEW_IFUNC(f,c) NEW_NODE(NODE_IFUNC,f,c,0)
bb7a2d4 Koichi Sasada * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
ko1 authored
354 #define NEW_SCOPE(a,b) NEW_NODE(NODE_SCOPE,local_tbl(),b,a)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
355 #define NEW_BLOCK(a) NEW_NODE(NODE_BLOCK,a,0,0)
356 #define NEW_IF(c,t,e) NEW_NODE(NODE_IF,c,t,e)
210367e This commit was generated by cvs2svn to compensate for changes in r372,
matz authored
357 #define NEW_UNLESS(c,t,e) NEW_IF(c,e,t)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
358 #define NEW_CASE(h,b) NEW_NODE(NODE_CASE,h,b,0)
359 #define NEW_WHEN(c,t,e) NEW_NODE(NODE_WHEN,c,t,e)
360 #define NEW_OPT_N(b) NEW_NODE(NODE_OPT_N,0,b,0)
361 #define NEW_WHILE(c,b,n) NEW_NODE(NODE_WHILE,c,b,n)
362 #define NEW_UNTIL(c,b,n) NEW_NODE(NODE_UNTIL,c,b,n)
363 #define NEW_FOR(v,i,b) NEW_NODE(NODE_FOR,v,b,i)
bb7a2d4 Koichi Sasada * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
ko1 authored
364 #define NEW_ITER(a,b) NEW_NODE(NODE_ITER,0,NEW_SCOPE(a,b),0)
365 #define NEW_LAMBDA(a) NEW_NODE(NODE_LAMBDA,a,0,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
366 #define NEW_BREAK(s) NEW_NODE(NODE_BREAK,s,0,0)
367 #define NEW_NEXT(s) NEW_NODE(NODE_NEXT,s,0,0)
368 #define NEW_REDO() NEW_NODE(NODE_REDO,0,0,0)
369 #define NEW_RETRY() NEW_NODE(NODE_RETRY,0,0,0)
370 #define NEW_BEGIN(b) NEW_NODE(NODE_BEGIN,0,b,0)
371 #define NEW_RESCUE(b,res,e) NEW_NODE(NODE_RESCUE,b,res,e)
372 #define NEW_RESBODY(a,ex,n) NEW_NODE(NODE_RESBODY,n,ex,a)
373 #define NEW_ENSURE(b,en) NEW_NODE(NODE_ENSURE,b,0,en)
374 #define NEW_RETURN(s) NEW_NODE(NODE_RETURN,s,0,0)
375 #define NEW_YIELD(a,s) NEW_NODE(NODE_YIELD,a,0,s)
3db12e8 Initial revision
matz authored
376 #define NEW_LIST(a) NEW_ARRAY(a)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
377 #define NEW_ARRAY(a) NEW_NODE(NODE_ARRAY,a,1,0)
378 #define NEW_ZARRAY() NEW_NODE(NODE_ZARRAY,0,0,0)
379 #define NEW_HASH(a) NEW_NODE(NODE_HASH,a,0,0)
380 #define NEW_MASGN(l,r) NEW_NODE(NODE_MASGN,l,0,r)
381 #define NEW_GASGN(v,val) NEW_NODE(NODE_GASGN,v,val,rb_global_entry(v))
bb7a2d4 Koichi Sasada * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
ko1 authored
382 #define NEW_LASGN(v,val) NEW_NODE(NODE_LASGN,v,val,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
383 #define NEW_DASGN(v,val) NEW_NODE(NODE_DASGN,v,val,0)
384 #define NEW_DASGN_CURR(v,val) NEW_NODE(NODE_DASGN_CURR,v,val,0)
385 #define NEW_IASGN(v,val) NEW_NODE(NODE_IASGN,v,val,0)
72f2d2a * parse.y (rb_compose_ivar2): function to create a new ivar2
matz authored
386 #define NEW_IASGN2(v,val) NEW_NODE(NODE_IASGN2,v,val,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
387 #define NEW_CDECL(v,val,path) NEW_NODE(NODE_CDECL,v,val,path)
388 #define NEW_CVASGN(v,val) NEW_NODE(NODE_CVASGN,v,val,0)
389 #define NEW_CVDECL(v,val) NEW_NODE(NODE_CVDECL,v,val,0)
390 #define NEW_OP_ASGN1(p,id,a) NEW_NODE(NODE_OP_ASGN1,p,id,a)
391 #define NEW_OP_ASGN2(r,i,o,val) NEW_NODE(NODE_OP_ASGN2,r,val,NEW_OP_ASGN22(i,o))
392 #define NEW_OP_ASGN22(i,o) NEW_NODE(NODE_OP_ASGN2,i,o,rb_id_attrset(i))
393 #define NEW_OP_ASGN_OR(i,val) NEW_NODE(NODE_OP_ASGN_OR,i,val,0)
394 #define NEW_OP_ASGN_AND(i,val) NEW_NODE(NODE_OP_ASGN_AND,i,val,0)
395 #define NEW_GVAR(v) NEW_NODE(NODE_GVAR,v,0,rb_global_entry(v))
bb7a2d4 Koichi Sasada * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
ko1 authored
396 #define NEW_LVAR(v) NEW_NODE(NODE_LVAR,v,0,0)
3e7c55f Nobuyoshi Nakada * parse.y (local_vars): moved to struct parser_params.
nobu authored
397 #define NEW_DVAR(v) NEW_NODE(NODE_DVAR,v,0,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
398 #define NEW_IVAR(v) NEW_NODE(NODE_IVAR,v,0,0)
399 #define NEW_CONST(v) NEW_NODE(NODE_CONST,v,0,0)
400 #define NEW_CVAR(v) NEW_NODE(NODE_CVAR,v,0,0)
bb7a2d4 Koichi Sasada * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
ko1 authored
401 #define NEW_NTH_REF(n) NEW_NODE(NODE_NTH_REF,0,n,0)
402 #define NEW_BACK_REF(n) NEW_NODE(NODE_BACK_REF,0,n,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
403 #define NEW_MATCH(c) NEW_NODE(NODE_MATCH,c,0,0)
404 #define NEW_MATCH2(n1,n2) NEW_NODE(NODE_MATCH2,n1,n2,0)
405 #define NEW_MATCH3(r,n2) NEW_NODE(NODE_MATCH3,r,n2,0)
406 #define NEW_LIT(l) NEW_NODE(NODE_LIT,l,0,0)
407 #define NEW_STR(s) NEW_NODE(NODE_STR,s,0,0)
06ec039 Nobuyoshi Nakada * node.h (NEW_DSTR): adjust list length.
nobu authored
408 #define NEW_DSTR(s) NEW_NODE(NODE_DSTR,s,1,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
409 #define NEW_XSTR(s) NEW_NODE(NODE_XSTR,s,0,0)
410 #define NEW_DXSTR(s) NEW_NODE(NODE_DXSTR,s,0,0)
411 #define NEW_DSYM(s) NEW_NODE(NODE_DSYM,s,0,0)
412 #define NEW_EVSTR(n) NEW_NODE(NODE_EVSTR,0,(n),0)
413 #define NEW_CALL(r,m,a) NEW_NODE(NODE_CALL,r,m,a)
414 #define NEW_FCALL(m,a) NEW_NODE(NODE_FCALL,0,m,a)
415 #define NEW_VCALL(m) NEW_NODE(NODE_VCALL,0,m,0)
416 #define NEW_SUPER(a) NEW_NODE(NODE_SUPER,0,0,a)
417 #define NEW_ZSUPER() NEW_NODE(NODE_ZSUPER,0,0,0)
0fe7204 Koichi Sasada * parse.y, node.h, compile.c: change node tree structure. a purpose
ko1 authored
418 #define NEW_ARGS(m,o) NEW_NODE(NODE_ARGS,o,m,0)
419 #define NEW_ARGS_AUX(r,b) NEW_NODE(NODE_ARGS_AUX,r,b,0)
420 #define NEW_OPT_ARG(i,v) NEW_NODE(NODE_OPT_ARG,i,v,0)
421 #define NEW_POSTARG(i,v) NEW_NODE(NODE_POSTARG,i,v,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
422 #define NEW_ARGSCAT(a,b) NEW_NODE(NODE_ARGSCAT,a,b,0)
423 #define NEW_ARGSPUSH(a,b) NEW_NODE(NODE_ARGSPUSH,a,b,0)
424 #define NEW_SPLAT(a) NEW_NODE(NODE_SPLAT,a,0,0)
8a4abe4 * parse.y (stmt): rhs of multiple assignment should not be
matz authored
425 #define NEW_TO_ARY(a) NEW_NODE(NODE_TO_ARY,a,0,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
426 #define NEW_BLOCK_ARG(v) NEW_NODE(NODE_BLOCK_ARG,v,0,local_cnt(v))
427 #define NEW_BLOCK_PASS(b) NEW_NODE(NODE_BLOCK_PASS,0,b,0)
3e9e2bd * eval.c (rb_eval): NODE_XSTR should pass copy of literal string.
matz authored
428 #define NEW_ALIAS(n,o) NEW_NODE(NODE_ALIAS,n,o,0)
429 #define NEW_VALIAS(n,o) NEW_NODE(NODE_VALIAS,n,o,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
430 #define NEW_UNDEF(i) NEW_NODE(NODE_UNDEF,0,i,0)
bb7a2d4 Koichi Sasada * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
ko1 authored
431 #define NEW_CLASS(n,b,s) NEW_NODE(NODE_CLASS,n,NEW_SCOPE(0,b),(s))
432 #define NEW_SCLASS(r,b) NEW_NODE(NODE_SCLASS,r,NEW_SCOPE(0,b),0)
433 #define NEW_MODULE(n,b) NEW_NODE(NODE_MODULE,n,NEW_SCOPE(0,b),0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
434 #define NEW_COLON2(c,i) NEW_NODE(NODE_COLON2,c,i,0)
435 #define NEW_COLON3(i) NEW_NODE(NODE_COLON3,0,i,0)
436 #define NEW_DOT2(b,e) NEW_NODE(NODE_DOT2,b,e,0)
437 #define NEW_DOT3(b,e) NEW_NODE(NODE_DOT3,b,e,0)
438 #define NEW_SELF() NEW_NODE(NODE_SELF,0,0,0)
439 #define NEW_NIL() NEW_NODE(NODE_NIL,0,0,0)
440 #define NEW_TRUE() NEW_NODE(NODE_TRUE,0,0,0)
441 #define NEW_FALSE() NEW_NODE(NODE_FALSE,0,0,0)
225cd9f * parse.y (opt_rescue): use NODE_ERRINFO() instead of
matz authored
442 #define NEW_ERRINFO() NEW_NODE(NODE_ERRINFO,0,0,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
443 #define NEW_DEFINED(e) NEW_NODE(NODE_DEFINED,e,0,0)
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
444 #define NEW_PREEXE(b) NEW_SCOPE(b)
5675cdb * eval.c: unify ruby_class (for method definition) and ruby_cbase
matz authored
445 #define NEW_POSTEXE(b) NEW_NODE(NODE_POSTEXE,0,b,0)
9ae79bf * node.h (NEW_NODE): cast arguments to rb_node_newnode().
matz authored
446 #define NEW_BMETHOD(b) NEW_NODE(NODE_BMETHOD,0,0,b)
447 #define NEW_ATTRASGN(r,m,a) NEW_NODE(NODE_ATTRASGN,r,m,a)
136b284 * parse.y: remove global variables ruby_eval_tree and
matz authored
448 #define NEW_PRELUDE(p,b) NEW_NODE(NODE_PRELUDE,p,b,0)
a3e1b1c Koichi Sasada * Merge YARV
ko1 authored
449 #define NEW_OPTBLOCK(a) NEW_NODE(NODE_OPTBLOCK,a,0,0)
3db12e8 Initial revision
matz authored
450
2b1f857 Nobuyoshi Nakada * include/ruby/encoding.h (rb_char_to_option_kcode): used in
nobu authored
451 #if defined __GNUC__ && __GNUC__ >= 4
452 #pragma GCC visibility push(default)
453 #endif
454
08c1738 * bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
ocean authored
455 VALUE rb_parser_new(void);
456 VALUE rb_parser_end_seen_p(VALUE);
3cd040b Nobuyoshi Nakada * encoding.c (rb_primary_encoding): added Encoding.primary_encoding.
nobu authored
457 VALUE rb_parser_encoding(VALUE);
2b1f857 Nobuyoshi Nakada * include/ruby/encoding.h (rb_char_to_option_kcode): used in
nobu authored
458 VALUE rb_parser_get_yydebug(VALUE);
459 VALUE rb_parser_set_yydebug(VALUE, VALUE);
032248d Nobuyoshi Nakada * parse.y: remove static variables. [ruby-dev:26530]
nobu authored
460
a3e1b1c Koichi Sasada * Merge YARV
ko1 authored
461 NODE *rb_parser_compile_cstr(volatile VALUE, const char*, const char*, int, int);
462 NODE *rb_parser_compile_string(volatile VALUE, const char*, VALUE, int);
463 NODE *rb_parser_compile_file(volatile VALUE, const char*, VALUE, int);
032248d Nobuyoshi Nakada * parse.y: remove static variables. [ruby-dev:26530]
nobu authored
464
08c1738 * bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
ocean authored
465 NODE *rb_compile_cstr(const char*, const char*, int, int);
466 NODE *rb_compile_string(const char*, VALUE, int);
467 NODE *rb_compile_file(const char*, VALUE, int);
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
468
08c1738 * bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
ocean authored
469 NODE *rb_node_newnode(enum node_type,VALUE,VALUE,VALUE);
57b83a5 Narihiro Nakamura * gc.c: add longlife garbage collection. [ruby-dev:38423]
authorNari authored
470 NODE *rb_node_newnode_longlife(enum node_type,VALUE,VALUE,VALUE);
7ea2ced This commit was generated by cvs2svn to compensate for changes in r11,
matz authored
471
94664d6 Koichi Sasada * node.h, vm_core.h, variable.c: rename global_entry to rb_global_entry.
ko1 authored
472 struct rb_global_entry {
473 struct rb_global_variable *var;
474 ID id;
475 };
476
477 struct rb_global_entry *rb_global_entry(ID);
478 VALUE rb_gvar_get(struct rb_global_entry *);
479 VALUE rb_gvar_set(struct rb_global_entry *, VALUE);
480 VALUE rb_gvar_defined(struct rb_global_entry *);
2b1f857 Nobuyoshi Nakada * include/ruby/encoding.h (rb_char_to_option_kcode): used in
nobu authored
481 const struct kwtable *rb_reserved_word(const char *, unsigned int);
482
3bf1afb Nobuyoshi Nakada * include/ruby/intern.h (rb_make_backtrace, rb_make_exception):
nobu authored
483 struct parser_params;
484 void *rb_parser_malloc(struct parser_params *, size_t);
485 void *rb_parser_realloc(struct parser_params *, void *, size_t);
486 void *rb_parser_calloc(struct parser_params *, size_t, size_t);
487 void rb_parser_free(struct parser_params *, void *);
488
2b1f857 Nobuyoshi Nakada * include/ruby/encoding.h (rb_char_to_option_kcode): used in
nobu authored
489 #if defined __GNUC__ && __GNUC__ >= 4
490 #pragma GCC visibility pop
491 #endif
94664d6 Koichi Sasada * node.h, vm_core.h, variable.c: rename global_entry to rb_global_entry.
ko1 authored
492
0d684be 19991029
matz authored
493 #if defined(__cplusplus)
2b59258 Nobuyoshi Nakada * include/ruby: moved public headers.
nobu authored
494 #if 0
495 { /* satisfy cc-mode */
496 #endif
0d684be 19991029
matz authored
497 } /* extern "C" { */
498 #endif
499
2b59258 Nobuyoshi Nakada * include/ruby: moved public headers.
nobu authored
500 #endif /* RUBY_NODE_H */
Something went wrong with that request. Please try again.