Mercurial > projects > ldc
diff dmd/scope.h @ 1367:8026319762be
Merged DMD 1.045 !!!
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sat, 16 May 2009 22:21:31 +0200 |
parents | e961851fb8be |
children | def7a1d494fd |
line wrap: on
line diff
--- a/dmd/scope.h Sat May 16 18:37:16 2009 +0200 +++ b/dmd/scope.h Sat May 16 22:21:31 2009 +0200 @@ -12,7 +12,7 @@ #ifdef __DMC__ #pragma once -#endif /* __DMC__ */ +#endif struct Dsymbol; struct ScopeDsymbol; @@ -29,10 +29,15 @@ struct AnonymousAggregateDeclaration; struct FuncDeclaration; struct DocComment; +struct TemplateInstance; + +#if IN_LLVM struct EnclosingHandler; struct AnonDeclaration; +#endif #if __GNUC__ +// Requires a full definition for PROT and LINK #include "dsymbol.h" // PROT #include "mars.h" // LINK #else @@ -53,8 +58,8 @@ LabelStatement *slabel; // enclosing labelled statement SwitchStatement *sw; // enclosing switch statement TryFinallyStatement *enclosingFinally; // enclosing try finally statement; set inside its finally block + TemplateInstance *tinst; // enclosing template instance Statement *enclosingScopeExit; // enclosing statement that wants to do something on scope exit - TemplateInstance *tinst; // enclosing template instance Statement *sbreak; // enclosing statement that supports "break" Statement *scontinue; // enclosing statement that supports "continue" ForeachStatement *fes; // if nested function for ForeachStatement, this is it