comparison dmd/mtype.c @ 1029:4d366a75d95f

Added hasUnalignedFields helper to check if a type has unaligned fields - as per request from fvbommel. Result is cached in TypeStruct.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 03 Mar 2009 15:08:26 +0100
parents 9167d492cbc2
children dc608dc33081
comparison
equal deleted inserted replaced
1028:964af20461a9 1029:4d366a75d95f
4276 4276
4277 TypeStruct::TypeStruct(StructDeclaration *sym) 4277 TypeStruct::TypeStruct(StructDeclaration *sym)
4278 : Type(Tstruct, NULL) 4278 : Type(Tstruct, NULL)
4279 { 4279 {
4280 this->sym = sym; 4280 this->sym = sym;
4281
4282 // LDC
4283 this->unaligned = 0;
4281 } 4284 }
4282 4285
4283 char *TypeStruct::toChars() 4286 char *TypeStruct::toChars()
4284 { 4287 {
4285 //printf("sym.parent: %s, deco = %s\n", sym->parent->toChars(), deco); 4288 //printf("sym.parent: %s, deco = %s\n", sym->parent->toChars(), deco);