Mercurial > projects > ldc
diff dmd/struct.c @ 336:aaade6ded589 trunk
[svn r357] Merged DMD 1.033
author | lindquist |
---|---|
date | Sat, 12 Jul 2008 19:38:31 +0200 |
parents | ccd07d9f2ce9 |
children | de97188378bc |
line wrap: on
line diff
--- a/dmd/struct.c Sat Jul 12 17:04:36 2008 +0200 +++ b/dmd/struct.c Sat Jul 12 19:38:31 2008 +0200 @@ -254,6 +254,8 @@ handle = type->pointerTo(); structalign = sc->structalign; protection = sc->protection; + if (sc->stc & STCdeprecated) + isdeprecated = 1; assert(!isAnonymous()); if (sc->stc & STCabstract) error("structs, unions cannot be abstract"); @@ -450,7 +452,7 @@ } -char *StructDeclaration::kind() +const char *StructDeclaration::kind() { return "struct"; } @@ -475,7 +477,7 @@ } -char *UnionDeclaration::kind() +const char *UnionDeclaration::kind() { return "union"; }