comparison 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
comparison
equal deleted inserted replaced
335:17b844102023 336:aaade6ded589
252 252
253 parent = sc->parent; 253 parent = sc->parent;
254 handle = type->pointerTo(); 254 handle = type->pointerTo();
255 structalign = sc->structalign; 255 structalign = sc->structalign;
256 protection = sc->protection; 256 protection = sc->protection;
257 if (sc->stc & STCdeprecated)
258 isdeprecated = 1;
257 assert(!isAnonymous()); 259 assert(!isAnonymous());
258 if (sc->stc & STCabstract) 260 if (sc->stc & STCabstract)
259 error("structs, unions cannot be abstract"); 261 error("structs, unions cannot be abstract");
260 262
261 if (sizeok == 0) // if not already done the addMember step 263 if (sizeok == 0) // if not already done the addMember step
448 buf->writeByte('}'); 450 buf->writeByte('}');
449 buf->writenl(); 451 buf->writenl();
450 } 452 }
451 453
452 454
453 char *StructDeclaration::kind() 455 const char *StructDeclaration::kind()
454 { 456 {
455 return "struct"; 457 return "struct";
456 } 458 }
457 459
458 /********************************* UnionDeclaration ****************************/ 460 /********************************* UnionDeclaration ****************************/
473 StructDeclaration::syntaxCopy(ud); 475 StructDeclaration::syntaxCopy(ud);
474 return ud; 476 return ud;
475 } 477 }
476 478
477 479
478 char *UnionDeclaration::kind() 480 const char *UnionDeclaration::kind()
479 { 481 {
480 return "union"; 482 return "union";
481 } 483 }
482 484
483 485