Mercurial > projects > ldc
comparison dmd2/mtype.h @ 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 | 638d16625da2 |
comparison
equal
deleted
inserted
replaced
1028:964af20461a9 | 1029:4d366a75d95f |
---|---|
626 #if TARGET_LINUX | 626 #if TARGET_LINUX |
627 void toCppMangle(OutBuffer *buf, CppMangleState *cms); | 627 void toCppMangle(OutBuffer *buf, CppMangleState *cms); |
628 #endif | 628 #endif |
629 | 629 |
630 type *toCtype(); | 630 type *toCtype(); |
631 | |
632 // LDC | |
633 // cache the hasUnalignedFields check | |
634 // 0 = not checked, 1 = aligned, 2 = unaligned | |
635 int unaligned; | |
631 }; | 636 }; |
632 | 637 |
633 struct TypeEnum : Type | 638 struct TypeEnum : Type |
634 { | 639 { |
635 EnumDeclaration *sym; | 640 EnumDeclaration *sym; |