Merge the 2.063 frontend.

This commit is contained in:
David Nadlinger
2013-06-12 20:16:37 +02:00
parent 981a6af17e
commit 292caa1438
90 changed files with 10179 additions and 8105 deletions
+8 -6
View File
@@ -22,7 +22,7 @@ struct Identifier;
struct Type;
struct Expression;
struct HdrGenState;
struct VarDeclaration;
struct EnumDeclaration : ScopeDsymbol
{ /* enum ident : memtype { ... }
@@ -40,15 +40,13 @@ struct EnumDeclaration : ScopeDsymbol
Expression *minval;
Expression *defaultval; // default initializer
#endif
int isdeprecated;
bool isdeprecated;
int isdone; // 0: not done
// 1: semantic() successfully completed
#ifdef IN_GCC
Expressions *attributes; // GCC decl/type attributes
#endif
EnumDeclaration(Loc loc, Identifier *id, Type *memtype);
Dsymbol *syntaxCopy(Dsymbol *s);
int addMember(Scope *sc, ScopeDsymbol *sd, int memnum);
void setScope(Scope *sc);
void semantic0(Scope *sc);
void semantic(Scope *sc);
@@ -59,7 +57,7 @@ struct EnumDeclaration : ScopeDsymbol
#if DMDV2
Dsymbol *search(Loc, Identifier *ident, int flags);
#endif
int isDeprecated(); // is Dsymbol deprecated?
bool isDeprecated(); // is Dsymbol deprecated?
void emitComment(Scope *sc);
void toJson(JsonOut *json);
@@ -85,13 +83,17 @@ struct EnumDeclaration : ScopeDsymbol
struct EnumMember : Dsymbol
{
EnumDeclaration *ed;
Expression *value;
Type *type;
VarDeclaration *vd;
EnumMember(Loc loc, Identifier *id, Expression *value, Type *type);
Dsymbol *syntaxCopy(Dsymbol *s);
void toCBuffer(OutBuffer *buf, HdrGenState *hgs);
const char *kind();
void semantic(Scope *sc);
Expression *getVarExp(Loc loc, Scope *sc);
void emitComment(Scope *sc);
void toJson(JsonOut *json);