comparison dmd/mtype.c @ 121:9c79b61fb638 trunk

[svn r125] Renamed/moved a few backend member inside DMD structures for consistency. Unit tests are now implemented.
author lindquist
date Tue, 27 Nov 2007 03:09:36 +0100
parents 5880c12dba83
children facc562f5674
comparison
equal deleted inserted replaced
120:5ce8ab11e75a 121:9c79b61fb638
2558 this->varargs = varargs; 2558 this->varargs = varargs;
2559 this->linkage = linkage; 2559 this->linkage = linkage;
2560 this->inuse = 0; 2560 this->inuse = 0;
2561 this->llvmRetInPtr = false; 2561 this->llvmRetInPtr = false;
2562 this->llvmUsesThis = false; 2562 this->llvmUsesThis = false;
2563 this->llvmRetArg = 0;
2564 this->llvmAllocaPoint = 0;
2565 } 2563 }
2566 2564
2567 Type *TypeFunction::syntaxCopy() 2565 Type *TypeFunction::syntaxCopy()
2568 { 2566 {
2569 Type *treturn = next ? next->syntaxCopy() : NULL; 2567 Type *treturn = next ? next->syntaxCopy() : NULL;
4092 4090
4093 TypeStruct::TypeStruct(StructDeclaration *sym) 4091 TypeStruct::TypeStruct(StructDeclaration *sym)
4094 : Type(Tstruct, NULL) 4092 : Type(Tstruct, NULL)
4095 { 4093 {
4096 this->sym = sym; 4094 this->sym = sym;
4097 llvmInit = 0;
4098 } 4095 }
4099 4096
4100 char *TypeStruct::toChars() 4097 char *TypeStruct::toChars()
4101 { 4098 {
4102 //printf("sym.parent: %s, deco = %s\n", sym->parent->toChars(), deco); 4099 //printf("sym.parent: %s, deco = %s\n", sym->parent->toChars(), deco);
4381 4378
4382 TypeClass::TypeClass(ClassDeclaration *sym) 4379 TypeClass::TypeClass(ClassDeclaration *sym)
4383 : Type(Tclass, NULL) 4380 : Type(Tclass, NULL)
4384 { 4381 {
4385 this->sym = sym; 4382 this->sym = sym;
4386 llvmInit = 0;
4387 llvmVtblType = 0; 4383 llvmVtblType = 0;
4388 } 4384 }
4389 4385
4390 char *TypeClass::toChars() 4386 char *TypeClass::toChars()
4391 { 4387 {