From 187d47a62637f40caff83df718f8a50fba3da77f Mon Sep 17 00:00:00 2001 From: cas Date: Thu, 6 Jan 2000 17:56:55 +0000 Subject: [PATCH] No comments --- src/WOKTools/WOKTools_Error.cxx | 2 ++ src/WOKTools/WOKTools_Info.cxx | 2 ++ src/WOKTools/WOKTools_Options.cdl | 2 +- src/WOKTools/WOKTools_Options.cxx | 9 +++++---- src/WOKTools/WOKTools_Options_proto.hxx | 2 +- src/WOKTools/WOKTools_Verbose.cxx | 4 ++++ src/WOKTools/WOKTools_Warning.cxx | 2 ++ 7 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/WOKTools/WOKTools_Error.cxx b/src/WOKTools/WOKTools_Error.cxx index b2228a5..5bd1041 100755 --- a/src/WOKTools/WOKTools_Error.cxx +++ b/src/WOKTools/WOKTools_Error.cxx @@ -3,7 +3,9 @@ // Author: Jean GAUTIER // +#ifndef WNT #include +#endif #include diff --git a/src/WOKTools/WOKTools_Info.cxx b/src/WOKTools/WOKTools_Info.cxx index f37f310..90f6507 100755 --- a/src/WOKTools/WOKTools_Info.cxx +++ b/src/WOKTools/WOKTools_Info.cxx @@ -1,5 +1,7 @@ +#ifndef WNT #include +#endif #include diff --git a/src/WOKTools/WOKTools_Options.cdl b/src/WOKTools/WOKTools_Options.cdl index 1fc01e0..3eee4a4 100755 --- a/src/WOKTools/WOKTools_Options.cdl +++ b/src/WOKTools/WOKTools_Options.cdl @@ -61,7 +61,7 @@ fields myargv : ArgTable from WOKTools; mydefines : HSequenceOfDefine from WOKTools; mymore : Boolean from Standard; - mycuropt : Character from Standard; + mycuropt : Byte from Standard; mycurarg : HAsciiString from TCollection; mycurlistarg : HSequenceOfHAsciiString from TColStd; myargs : HSequenceOfHAsciiString from TColStd; diff --git a/src/WOKTools/WOKTools_Options.cxx b/src/WOKTools/WOKTools_Options.cxx index e16f642..1963223 100755 --- a/src/WOKTools/WOKTools_Options.cxx +++ b/src/WOKTools/WOKTools_Options.cxx @@ -55,7 +55,7 @@ WOKTools_Options::WOKTools_Options(const Standard_Integer argc, Next(); // s'il il n'y a qu'une option - if(mycuropt == EOF) + if(mycuropt == (Standard_Byte ) EOF) mymore = Standard_False; } @@ -69,7 +69,7 @@ void WOKTools_Options::Next() mycuropt = getopt(myargc, myargv, myoptions->ToCString()); - if(mycuropt == EOF) + if(mycuropt == (Standard_Byte ) EOF) { for( ; (optind < myargc) && (myargv[optind][0] != '-'); optind++) { @@ -186,8 +186,9 @@ void WOKTools_Options::Next() if (myerrflg) // vider { - Standard_Character acuropt = '\0'; - while(acuropt != EOF) +// Standard_Character acuropt = '\0'; + Standard_Byte acuropt = 0; + while(acuropt != (Standard_Byte ) EOF) acuropt = getopt(myargc, myargv, myoptions->ToCString()); } diff --git a/src/WOKTools/WOKTools_Options_proto.hxx b/src/WOKTools/WOKTools_Options_proto.hxx index 4873f77..146f36b 100755 --- a/src/WOKTools/WOKTools_Options_proto.hxx +++ b/src/WOKTools/WOKTools_Options_proto.hxx @@ -47,8 +47,8 @@ private: Standard_Integer myargc; WOKTools_ArgTable myargv; Handle_WOKTools_HSequenceOfDefine mydefines; + Standard_Byte mycuropt; Standard_Boolean mymore; - Standard_Character mycuropt; Handle_TCollection_HAsciiString mycurarg; Handle_TColStd_HSequenceOfHAsciiString mycurlistarg; Handle_TColStd_HSequenceOfHAsciiString myargs; diff --git a/src/WOKTools/WOKTools_Verbose.cxx b/src/WOKTools/WOKTools_Verbose.cxx index 939d829..63b61fb 100755 --- a/src/WOKTools/WOKTools_Verbose.cxx +++ b/src/WOKTools/WOKTools_Verbose.cxx @@ -3,8 +3,12 @@ // Author: Jean GAUTIER // +#ifdef WNT +#include +#else #include #include +#endif #include diff --git a/src/WOKTools/WOKTools_Warning.cxx b/src/WOKTools/WOKTools_Warning.cxx index d420158..baddb91 100755 --- a/src/WOKTools/WOKTools_Warning.cxx +++ b/src/WOKTools/WOKTools_Warning.cxx @@ -3,7 +3,9 @@ // Author: Jean GAUTIER // +#ifndef WNT #include +#endif #include -- 2.39.5