From e284da3632da0c11d9b9e78352f61a4c0e23dfa8 Mon Sep 17 00:00:00 2001 From: cascade Date: Fri, 13 Feb 2009 18:33:58 +0000 Subject: [PATCH] OCC20850 umake command do not work on SunOS10 --- src/CPPClient/CPPClient.cxx | 44 +++++++++++++-------------- src/CPPClient/CPPClient_MPV.cxx | 2 +- src/CPPClient/CPPClient_Package.cxx | 2 +- src/CPPClient/CPPClient_Transient.cxx | 2 +- 4 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/CPPClient/CPPClient.cxx b/src/CPPClient/CPPClient.cxx index 4e2afd6..f64ef5f 100755 --- a/src/CPPClient/CPPClient.cxx +++ b/src/CPPClient/CPPClient.cxx @@ -62,14 +62,14 @@ void CPPClient_Init(const Handle(MS_MetaSchema)& aMeta, } } else { - ErrorMsg << "CPPClient" << "Init : Method " << asyncmet->Value(i) << " not found..." << endm; + ErrorMsg() << "CPPClient" << "Init : Method " << asyncmet->Value(i) << " not found..." << endm; Standard_NoSuchObject::Raise(); } } } else { - ErrorMsg << "CPPClient" << "Init : Client " << aName << " not found..." << endm; + ErrorMsg() << "CPPClient" << "Init : Client " << aName << " not found..." << endm; Standard_NoSuchObject::Raise(); } } @@ -111,11 +111,11 @@ Handle(EDL_API)& CPPClient_LoadTemplate(const Handle(TColStd_HSequenceOfHAsciiS } if (api->Execute("CPPClient_Template.edl") != EDL_NORMAL) { - ErrorMsg << "CPPClient" << "unable to load : CPPClient_Template.edl" << endm; + ErrorMsg() << "CPPClient" << "unable to load : CPPClient_Template.edl" << endm; Standard_NoSuchObject::Raise(); } if (api->Execute("CPPClient_General.edl") != EDL_NORMAL) { - ErrorMsg << "CPPClient" << "unable to load : CPPClient_General.edl" << endm; + ErrorMsg() << "CPPClient" << "unable to load : CPPClient_General.edl" << endm; Standard_NoSuchObject::Raise(); } } @@ -265,7 +265,7 @@ void CPPClient_MethodUsedTypes(const Handle(MS_MetaSchema)& aMeta, thetype = aMeta->GetType(parname); } else { - ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm; + ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm; Standard_NoSuchObject::Raise(); } } @@ -291,7 +291,7 @@ void CPPClient_MethodUsedTypes(const Handle(MS_MetaSchema)& aMeta, thetype = aMeta->GetType(parname); } else { - ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm; + ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm; Standard_NoSuchObject::Raise(); } } @@ -382,7 +382,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildType(const Handle(MS_MetaSchema) aType = aMeta->GetType(parname); } else { - ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm; + ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm; Standard_NoSuchObject::Raise(); } } @@ -414,7 +414,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildType(const Handle(MS_MetaSchema) } } else { - ErrorMsg << "CPPClient" << "Type " << aTypeName << " not defined..." << endm; + ErrorMsg() << "CPPClient" << "Type " << aTypeName << " not defined..." << endm; Standard_NoSuchObject::Raise(); } @@ -457,7 +457,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildParameterList(const Handle(MS_Me aType = aMeta->GetType(parname); } else { - ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm; + ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm; Standard_NoSuchObject::Raise(); } } @@ -596,8 +596,8 @@ void CPPClient_BuildAsynchronousMethod(const Handle(MS_MetaSchema)& aMeta, theArgList = CPPClient_BuildParameterList(aMeta,m->Params(),forDeclaration); if (theArgList == CPPClient_ErrorArgument) { - WarningMsg << "CPPClient" << "Bad argument type in method (pointer or imported type) " << m->FullName() << endm; - WarningMsg << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm; + WarningMsg() << "CPPClient" << "Bad argument type in method (pointer or imported type) " << m->FullName() << endm; + WarningMsg() << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm; api->AddVariable(VMethod,CPPClient_ErrorArgument->ToCString()); return; } @@ -636,8 +636,8 @@ void CPPClient_BuildAsynchronousMethod(const Handle(MS_MetaSchema)& aMeta, Handle(TCollection_HAsciiString) returnT = CPPClient_BuildType(aMeta,retType->TypeName()); if (returnT == CPPClient_ErrorArgument) { - WarningMsg << "CPPClient" << "Return type (pointer or imported type) of " << m->FullName() << " not exportable." << endm; - WarningMsg << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm; + WarningMsg() << "CPPClient" << "Return type (pointer or imported type) of " << m->FullName() << " not exportable." << endm; + WarningMsg() << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm; api->AddVariable(VMethod,CPPClient_ErrorArgument->ToCString()); return; } @@ -785,8 +785,8 @@ void CPPClient_BuildMethod(const Handle(MS_MetaSchema)& aMeta, theArgList = CPPClient_BuildParameterList(aMeta,m->Params(),forDeclaration); if (theArgList == CPPClient_ErrorArgument) { - WarningMsg << "CPPClient" << "Bad argument type in method (pointer or imported type) " << m->FullName() << endm; - WarningMsg << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm; + WarningMsg() << "CPPClient" << "Bad argument type in method (pointer or imported type) " << m->FullName() << endm; + WarningMsg() << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm; api->AddVariable(VMethod,CPPClient_ErrorArgument->ToCString()); return; } @@ -819,8 +819,8 @@ void CPPClient_BuildMethod(const Handle(MS_MetaSchema)& aMeta, Handle(TCollection_HAsciiString) returnT = CPPClient_BuildType(aMeta,retType->TypeName()); if (returnT == CPPClient_ErrorArgument) { - WarningMsg << "CPPClient" << "Return type (pointer or imported type) of " << m->FullName() << " not exportable." << endm; - WarningMsg << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm; + WarningMsg() << "CPPClient" << "Return type (pointer or imported type) of " << m->FullName() << " not exportable." << endm; + WarningMsg() << "CPPClient" << "Method : " << m->FullName() << " not exported." << endm; api->AddVariable(VMethod,CPPClient_ErrorArgument->ToCString()); return; } @@ -983,7 +983,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildAsynchronousReturnCode(const Han rtype = aMeta->GetType(parname); } else { - ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm; + ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm; Standard_NoSuchObject::Raise(); } } @@ -1047,7 +1047,7 @@ Handle(TCollection_HAsciiString) CPPClient_BuildReturnCode(const Handle(MS_MetaS rtype = aMeta->GetType(parname); } else { - ErrorMsg << "CPPClient" << "Type " << parname << " not defined..." << endm; + ErrorMsg() << "CPPClient" << "Type " << parname << " not defined..." << endm; Standard_NoSuchObject::Raise(); } } @@ -1354,7 +1354,7 @@ void CPPClient_TypeExtract(const Handle(MS_MetaSchema)& aMeta, srcPackage = aMeta->GetPackage(aName); } else { - ErrorMsg << "CPPClient" << aName->ToCString() << " not defined..." << endm; + ErrorMsg() << "CPPClient" << aName->ToCString() << " not defined..." << endm; Standard_NoSuchObject::Raise(); } @@ -1594,14 +1594,14 @@ void CPPClient_Extract(const Handle(MS_MetaSchema)& aMeta, else if (strcmp(Mode,"CPPClient_INCOMPLETE") == 0) {theMode = CPPClient_INCOMPLETE;} else if (strcmp(Mode,"CPPClient_SEMICOMPLETE") == 0) {theMode = CPPClient_SEMICOMPLETE;} else { - ErrorMsg << "CPPClient" << "Unknown extraction mode:" << Mode << endm; + ErrorMsg() << "CPPClient" << "Unknown extraction mode:" << Mode << endm; Standard_NoSuchObject::Raise(); } CPPClient_TypeExtract(aMeta,aTypeName,edlsfullpath,outdir,outfile,theMode); } else { - ErrorMsg << "CPPClient" << "Type " << aTypeName << " not defined..." << endm; + ErrorMsg() << "CPPClient" << "Type " << aTypeName << " not defined..." << endm; Standard_NoSuchObject::Raise(); } } diff --git a/src/CPPClient/CPPClient_MPV.cxx b/src/CPPClient/CPPClient_MPV.cxx index 21b95a6..032435c 100755 --- a/src/CPPClient/CPPClient_MPV.cxx +++ b/src/CPPClient/CPPClient_MPV.cxx @@ -248,7 +248,7 @@ void CPPClient_MPVClass(const Handle(MS_MetaSchema)& aMeta, } } else { - ErrorMsg << "CPPClient" << "CPPClient_TransientClass - the class is NULL..." << endm; + ErrorMsg() << "CPPClient" << "CPPClient_TransientClass - the class is NULL..." << endm; Standard_NoSuchObject::Raise(); } } diff --git a/src/CPPClient/CPPClient_Package.cxx b/src/CPPClient/CPPClient_Package.cxx index b7e3e0d..95fd353 100755 --- a/src/CPPClient/CPPClient_Package.cxx +++ b/src/CPPClient/CPPClient_Package.cxx @@ -198,7 +198,7 @@ void CPPClient_Package(const Handle(MS_MetaSchema)& aMeta, CPPClient_PackageDerivated(aMeta,api,aPackage,outfile,incp,Supplement); } else { - ErrorMsg << "CPPClient" << "CPPClient_Package - the package is NULL..." << endm; + ErrorMsg() << "CPPClient" << "CPPClient_Package - the package is NULL..." << endm; Standard_NoSuchObject::Raise(); } } diff --git a/src/CPPClient/CPPClient_Transient.cxx b/src/CPPClient/CPPClient_Transient.cxx index b6b3888..ec1d01e 100755 --- a/src/CPPClient/CPPClient_Transient.cxx +++ b/src/CPPClient/CPPClient_Transient.cxx @@ -291,7 +291,7 @@ void CPPClient_TransientClass(const Handle(MS_MetaSchema)& aMeta, CPPClient_TransientDerivated(aMeta,api,aClass,outfile,incp,Supplement,MustBeComplete); } else { - ErrorMsg << "CPPClient" << "CPPClient_TransientClass - the class is NULL..." << endm; + ErrorMsg() << "CPPClient" << "CPPClient_TransientClass - the class is NULL..." << endm; Standard_NoSuchObject::Raise(); } } -- 2.39.5