typedef pool_allocator<std::pair <K, D> > tAllocator;\r
\r
TMap() : TBaseMap<K, D, CMP, tAllocator >() {}\r
+/*\r
TMap(const tAllocator& a) : TBaseMap<K, D, CMP, tAllocator >(key_compare(), a) {}\r
+*/\r
+ TMap(const tAllocator& a) : TBaseMap<K, D, CMP, tAllocator >() {}\r
};\r
\r
//\r
if (line)\r
sprintf(locText, "%d:%d", string, line);\r
else\r
- sprintf(locText, "%d:? ", string, line);\r
+ sprintf(locText, "%d:? ", string);\r
\r
return TPersistString(locText);\r
}\r
public:\r
POOL_ALLOCATOR_NEW_DELETE(GlobalPoolAllocator)\r
explicit TType(TBasicType t, TQualifier q = EvqTemporary, int s = 1, bool m = false, bool a = false) :\r
- type(t), qualifier(q), size(s), matrix(m), array(a), arraySize(0),\r
- structure(0), structureSize(0), maxArraySize(0), arrayInformationType(0), typeName(0), mangled(0), fieldName(0)\r
+ type(t), qualifier(q), size(s), matrix(m), array(a), arraySize(0), structure(0),\r
+ structureSize(0), maxArraySize(0), arrayInformationType(0), fieldName(0), typeName(0), mangled(0)\r
{ }\r
explicit TType(TPublicType p) : \r
type(p.type), qualifier(p.qualifier), size(p.size), matrix(p.matrix), array(p.array), arraySize(0), \r
- structure(0), structureSize(0), maxArraySize(0), arrayInformationType(0), fieldName(0), mangled(0), typeName(0)\r
+ structure(0), structureSize(0), maxArraySize(0), arrayInformationType(0), fieldName(0), typeName(0), mangled(0)\r
{\r
if (p.userDef) {\r
structure = p.userDef->getStruct();\r
protected:\r
void buildMangledName(TString&);\r
\r
+ TBasicType type : 6;\r
+ TQualifier qualifier : 7;\r
+ int size : 8; // size of vector or matrix, not size of array\r
+ unsigned int matrix : 1;\r
+ unsigned int array : 1;\r
+\r
int arraySize;\r
TTypeList* structure; // 0 unless this is a struct\r
- TString *fieldName; // for structure field names\r
- TString *typeName; // for structure field type name\r
- TString *mangled;\r
int structureSize;\r
int maxArraySize;\r
TType* arrayInformationType;\r
+ TString *fieldName; // for structure field names\r
+ TString *typeName; // for structure field type name\r
+ TString *mangled;\r
\r
- TQualifier qualifier : 7;\r
- TBasicType type : 6;\r
- int size : 8; // size of vector or matrix, not size of array\r
- unsigned int matrix : 1;\r
- unsigned int array : 1;\r
};\r
\r
#endif // _TYPES_INCLUDED_\r
//\r
int rightValue = constantNode->getAsConstantUnion()->getUnionArrayPointer()->iConst;\r
int leftValue = this->getUnionArrayPointer()->iConst;\r
- int line = this->getLine();\r
+ //int line = this->getLine();\r
\r
switch(op) {\r
//?? add constant intrinsics\r
case EbtInt: constantUnion->iConst = 0; break;\r
case EbtFloat: constantUnion->fConst = 0.0; break;\r
case EbtBool: constantUnion->bConst = false; break;\r
+ default: ; /* default added by BrianP */\r
}\r
}\r
TIntermConstantUnion *constant = new TIntermConstantUnion(constantUnion,\r