comparison dmd/clone.c @ 336:aaade6ded589 trunk

[svn r357] Merged DMD 1.033
author lindquist
date Sat, 12 Jul 2008 19:38:31 +0200
parents 5acec6b2eef8
children
comparison
equal deleted inserted replaced
335:17b844102023 336:aaade6ded589
26 * Generate expression that calls opClone() 26 * Generate expression that calls opClone()
27 * for each member of the struct 27 * for each member of the struct
28 * (can be NULL for members that don't need one) 28 * (can be NULL for members that don't need one)
29 */ 29 */
30 30
31 #if V2 31 #if DMDV2
32 Expression *StructDeclaration::cloneMembers() 32 Expression *StructDeclaration::cloneMembers()
33 { 33 {
34 Expression *e = NULL; 34 Expression *e = NULL;
35 35
36 for (size_t i = 0; i < fields.dim; i++) 36 for (size_t i = 0; i < fields.dim; i++)
87 FuncDeclaration *AggregateDeclaration::buildDtor(Scope *sc) 87 FuncDeclaration *AggregateDeclaration::buildDtor(Scope *sc)
88 { 88 {
89 //printf("StructDeclaration::buildDtor() %s\n", toChars()); 89 //printf("StructDeclaration::buildDtor() %s\n", toChars());
90 Expression *e = NULL; 90 Expression *e = NULL;
91 91
92 #if V2 92 #if DMDV2
93 for (size_t i = 0; i < fields.dim; i++) 93 for (size_t i = 0; i < fields.dim; i++)
94 { 94 {
95 Dsymbol *s = (Dsymbol *)fields.data[i]; 95 Dsymbol *s = (Dsymbol *)fields.data[i];
96 VarDeclaration *v = s->isVarDeclaration(); 96 VarDeclaration *v = s->isVarDeclaration();
97 assert(v && v->storage_class & STCfield); 97 assert(v && v->storage_class & STCfield);