Mercurial > projects > ldc
comparison dmd/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 | 9167d492cbc2 |
children | dc608dc33081 |
comparison
equal
deleted
inserted
replaced
1028:964af20461a9 | 1029:4d366a75d95f |
---|---|
540 MATCH deduceType(Scope *sc, Type *tparam, TemplateParameters *parameters, Objects *dedtypes); | 540 MATCH deduceType(Scope *sc, Type *tparam, TemplateParameters *parameters, Objects *dedtypes); |
541 TypeInfoDeclaration *getTypeInfoDeclaration(); | 541 TypeInfoDeclaration *getTypeInfoDeclaration(); |
542 int hasPointers(); | 542 int hasPointers(); |
543 | 543 |
544 type *toCtype(); | 544 type *toCtype(); |
545 | |
546 // LDC | |
547 // cache the hasUnalignedFields check | |
548 // 0 = not checked, 1 = aligned, 2 = unaligned | |
549 int unaligned; | |
545 }; | 550 }; |
546 | 551 |
547 struct TypeEnum : Type | 552 struct TypeEnum : Type |
548 { | 553 { |
549 EnumDeclaration *sym; | 554 EnumDeclaration *sym; |