comparison dmd2/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 964af20461a9
children 442ab244c455
comparison
equal deleted inserted replaced
1028:964af20461a9 1029:4d366a75d95f
4927 4927
4928 TypeStruct::TypeStruct(StructDeclaration *sym) 4928 TypeStruct::TypeStruct(StructDeclaration *sym)
4929 : Type(Tstruct) 4929 : Type(Tstruct)
4930 { 4930 {
4931 this->sym = sym; 4931 this->sym = sym;
4932
4933 // LDC
4934 this->unaligned = 0;
4932 } 4935 }
4933 4936
4934 char *TypeStruct::toChars() 4937 char *TypeStruct::toChars()
4935 { 4938 {
4936 //printf("sym.parent: %s, deco = %s\n", sym->parent->toChars(), deco); 4939 //printf("sym.parent: %s, deco = %s\n", sym->parent->toChars(), deco);