Mercurial > projects > ldc
diff dmd/init.h @ 1146:1860414bf3b7
* Moved ir/irsymbol.cpp/h into ir/irdsymbol.cpp/h.
* Added #if IN_DMD versioning around DMD backend specific code in the D1 frontend, D2 is currently broken.
* All part of a greater cleanup scheme.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Thu, 26 Mar 2009 20:45:53 +0100 |
parents | eeb8b95ea92e |
children |
line wrap: on
line diff
--- a/dmd/init.h Thu Mar 26 18:46:21 2009 +0100 +++ b/dmd/init.h Thu Mar 26 20:45:53 2009 +0100 @@ -44,7 +44,9 @@ static Initializers *arraySyntaxCopy(Initializers *ai); +#if IN_DMD virtual dt_t *toDt(); +#endif virtual VoidInitializer *isVoidInitializer() { return NULL; } virtual StructInitializer *isStructInitializer() { return NULL; } @@ -62,7 +64,9 @@ Expression *toExpression(); void toCBuffer(OutBuffer *buf, HdrGenState *hgs); +#if IN_DMD dt_t *toDt(); +#endif virtual VoidInitializer *isVoidInitializer() { return this; } }; @@ -82,7 +86,9 @@ Expression *toExpression(); void toCBuffer(OutBuffer *buf, HdrGenState *hgs); +#if IN_DMD dt_t *toDt(); +#endif StructInitializer *isStructInitializer() { return this; } }; @@ -104,8 +110,10 @@ Initializer *toAssocArrayInitializer(); void toCBuffer(OutBuffer *buf, HdrGenState *hgs); +#if IN_DMD dt_t *toDt(); dt_t *toDtBit(); // for bit arrays +#endif ArrayInitializer *isArrayInitializer() { return this; } }; @@ -121,7 +129,9 @@ Expression *toExpression(); void toCBuffer(OutBuffer *buf, HdrGenState *hgs); +#if IN_DMD dt_t *toDt(); +#endif virtual ExpInitializer *isExpInitializer() { return this; } };