comparison dmd/lexer.h @ 1603:eae495e6ae8d

Merge DMD r248: implement Denis Koroskin's macro suggestion --- dmd/lexer.c | 2 +- dmd/lexer.h | 8 ++++---- dmd/mars.c | 2 +- dmd/parse.c | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-)
author Leandro Lucarella <llucax@gmail.com>
date Wed, 06 Jan 2010 15:18:19 -0300
parents def7a1d494fd
children
comparison
equal deleted inserted replaced
1602:a413ae7329bf 1603:eae495e6ae8d
169 #endif 169 #endif
170 170
171 TOKMAX 171 TOKMAX
172 }; 172 };
173 173
174 #define CASE_BASIC_TYPES \ 174 #define BASIC_TYPES \
175 case TOKwchar: case TOKdchar: \ 175 TOKwchar: case TOKdchar: \
176 case TOKbit: case TOKbool: case TOKchar: \ 176 case TOKbit: case TOKbool: case TOKchar: \
177 case TOKint8: case TOKuns8: \ 177 case TOKint8: case TOKuns8: \
178 case TOKint16: case TOKuns16: \ 178 case TOKint16: case TOKuns16: \
179 case TOKint32: case TOKuns32: \ 179 case TOKint32: case TOKuns32: \
180 case TOKint64: case TOKuns64: \ 180 case TOKint64: case TOKuns64: \
181 case TOKfloat32: case TOKfloat64: case TOKfloat80: \ 181 case TOKfloat32: case TOKfloat64: case TOKfloat80: \
182 case TOKimaginary32: case TOKimaginary64: case TOKimaginary80: \ 182 case TOKimaginary32: case TOKimaginary64: case TOKimaginary80: \
183 case TOKcomplex32: case TOKcomplex64: case TOKcomplex80: \ 183 case TOKcomplex32: case TOKcomplex64: case TOKcomplex80: \
184 case TOKvoid 184 case TOKvoid
185 185
186 #define CASE_BASIC_TYPES_X(t) \ 186 #define BASIC_TYPES_X(t) \
187 case TOKvoid: t = Type::tvoid; goto LabelX; \ 187 TOKvoid: t = Type::tvoid; goto LabelX; \
188 case TOKint8: t = Type::tint8; goto LabelX; \ 188 case TOKint8: t = Type::tint8; goto LabelX; \
189 case TOKuns8: t = Type::tuns8; goto LabelX; \ 189 case TOKuns8: t = Type::tuns8; goto LabelX; \
190 case TOKint16: t = Type::tint16; goto LabelX; \ 190 case TOKint16: t = Type::tint16; goto LabelX; \
191 case TOKuns16: t = Type::tuns16; goto LabelX; \ 191 case TOKuns16: t = Type::tuns16; goto LabelX; \
192 case TOKint32: t = Type::tint32; goto LabelX; \ 192 case TOKint32: t = Type::tint32; goto LabelX; \