Mercurial > projects > ldc
diff 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 |
line wrap: on
line diff
--- a/dmd/lexer.h Wed Jan 06 15:18:19 2010 -0300 +++ b/dmd/lexer.h Wed Jan 06 15:18:19 2010 -0300 @@ -171,8 +171,8 @@ TOKMAX }; -#define CASE_BASIC_TYPES \ - case TOKwchar: case TOKdchar: \ +#define BASIC_TYPES \ + TOKwchar: case TOKdchar: \ case TOKbit: case TOKbool: case TOKchar: \ case TOKint8: case TOKuns8: \ case TOKint16: case TOKuns16: \ @@ -183,8 +183,8 @@ case TOKcomplex32: case TOKcomplex64: case TOKcomplex80: \ case TOKvoid -#define CASE_BASIC_TYPES_X(t) \ - case TOKvoid: t = Type::tvoid; goto LabelX; \ +#define BASIC_TYPES_X(t) \ + TOKvoid: t = Type::tvoid; goto LabelX; \ case TOKint8: t = Type::tint8; goto LabelX; \ case TOKuns8: t = Type::tuns8; goto LabelX; \ case TOKint16: t = Type::tint16; goto LabelX; \