From 22f616ae831f3932320053ee4ac4f66d8efd588e Mon Sep 17 00:00:00 2001 From: cas Date: Tue, 19 Jun 2001 17:56:24 +0000 Subject: [PATCH] No comments --- src/WOKNT/WOKNT_AdmFile.cxx | 2 ++ src/WOKNT/WOKNT_CompareOfString.cxx | 2 ++ src/WOKNT/WOKNT_CopyIfCh.c | 2 ++ src/WOKNT/WOKNT_MixedOutput.cxx | 2 ++ src/WOKNT/WOKNT_OutErrOutput.cxx | 2 ++ src/WOKNT/WOKNT_Path.cxx | 2 ++ src/WOKNT/WOKNT_PathIterator.cxx | 3 ++- src/WOKNT/WOKNT_RegExp.cxx | 3 ++- src/WOKNT/WOKNT_ReplIfCh.c | 2 ++ src/WOKNT/WOKNT_ReplIfChWith.c | 2 ++ src/WOKNT/WOKNT_Shell.cxx | 2 ++ src/WOKNT/WOKNT_ShellManager.cxx | 2 ++ src/WOKNT/WOKNT_ShellOutput.cxx | 2 ++ src/WOKNT/WOKNT_Shell_1.cxx | 2 ++ src/WOKNT/WOKNT_chmod.cxx | 2 ++ src/WOKNT/WOKNT_cmp.c | 2 ++ src/WOKNT/WOKNT_cp.cxx | 2 ++ src/WOKNT/WOKNT_mv.cxx | 2 ++ src/WOKNT/WOKNT_regexp_1.c | 10 +++++++--- src/WOKNT/WOKNT_rm.cxx | 2 ++ 20 files changed, 45 insertions(+), 5 deletions(-) diff --git a/src/WOKNT/WOKNT_AdmFile.cxx b/src/WOKNT/WOKNT_AdmFile.cxx index 0e7ab7c..37b45c3 100755 --- a/src/WOKNT/WOKNT_AdmFile.cxx +++ b/src/WOKNT/WOKNT_AdmFile.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include @@ -103,3 +104,4 @@ TCollection_AsciiString WOKNT_AdmFile :: Name () const { return retVal; } // end WOKNT_AdmFile :: Name +#endif diff --git a/src/WOKNT/WOKNT_CompareOfString.cxx b/src/WOKNT/WOKNT_CompareOfString.cxx index a64a07a..8352d88 100755 --- a/src/WOKNT/WOKNT_CompareOfString.cxx +++ b/src/WOKNT/WOKNT_CompareOfString.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #include WOKNT_CompareOfString :: WOKNT_CompareOfString () { @@ -34,3 +35,4 @@ Standard_Boolean WOKNT_CompareOfString :: } // end WOKNT_CompareOfString :: IsEqual +#endif diff --git a/src/WOKNT/WOKNT_CopyIfCh.c b/src/WOKNT/WOKNT_CopyIfCh.c index 029fbe9..9b519f3 100755 --- a/src/WOKNT/WOKNT_CopyIfCh.c +++ b/src/WOKNT/WOKNT_CopyIfCh.c @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include @@ -23,3 +24,4 @@ __declspec( dllexport ) int wokCopyIfCh ( int argc, char** argv ) { return status; } /* end main */ +#endif diff --git a/src/WOKNT/WOKNT_MixedOutput.cxx b/src/WOKNT/WOKNT_MixedOutput.cxx index f0c5caa..806aec2 100755 --- a/src/WOKNT/WOKNT_MixedOutput.cxx +++ b/src/WOKNT/WOKNT_MixedOutput.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include @@ -189,3 +190,4 @@ void __fastcall _WOKNT_create_pipe ( ) *writePipe = ( Standard_Integer )INVALID_HANDLE_VALUE; } // end _WOKNT_create_pipe +#endif diff --git a/src/WOKNT/WOKNT_OutErrOutput.cxx b/src/WOKNT/WOKNT_OutErrOutput.cxx index a006cd5..f862bb2 100755 --- a/src/WOKNT/WOKNT_OutErrOutput.cxx +++ b/src/WOKNT/WOKNT_OutErrOutput.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include @@ -102,3 +103,4 @@ Handle( TColStd_HSequenceOfHAsciiString ) WOKNT_OutErrOutput :: SyncStdErr () { return retVal; } // end WOKNT_OutErrOutput :: SyncStdErr +#endif diff --git a/src/WOKNT/WOKNT_Path.cxx b/src/WOKNT/WOKNT_Path.cxx index 98ba8f5..14c0940 100755 --- a/src/WOKNT/WOKNT_Path.cxx +++ b/src/WOKNT/WOKNT_Path.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include @@ -615,3 +616,4 @@ Standard_Boolean WOKNT_Path::IsFile () if(myAttr & FILE_ATTRIBUTE_DIRECTORY) return Standard_False; return Standard_True; } +#endif diff --git a/src/WOKNT/WOKNT_PathIterator.cxx b/src/WOKNT/WOKNT_PathIterator.cxx index e2d2cf1..4d6c7e9 100755 --- a/src/WOKNT/WOKNT_PathIterator.cxx +++ b/src/WOKNT/WOKNT_PathIterator.cxx @@ -1,4 +1,4 @@ - +#ifdef WNT #include #include @@ -183,3 +183,4 @@ void WOKNT_PathIterator::Destroy() const if(myStack.Top() != INVALID_HANDLE_VALUE) FindClose(myStack.Top()); } +#endif diff --git a/src/WOKNT/WOKNT_RegExp.cxx b/src/WOKNT/WOKNT_RegExp.cxx index ad71db2..9a0ded6 100755 --- a/src/WOKNT/WOKNT_RegExp.cxx +++ b/src/WOKNT/WOKNT_RegExp.cxx @@ -1,4 +1,4 @@ - +#ifdef WNT #include #include @@ -157,3 +157,4 @@ Standard_Integer WOKNT_RegExp :: Match ( } // end WOKNT_RegExp :: Match +#endif diff --git a/src/WOKNT/WOKNT_ReplIfCh.c b/src/WOKNT/WOKNT_ReplIfCh.c index 500404a..4913f0a 100755 --- a/src/WOKNT/WOKNT_ReplIfCh.c +++ b/src/WOKNT/WOKNT_ReplIfCh.c @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include #include @@ -28,3 +29,4 @@ __declspec( dllexport ) int wokReplIfCh ( int argc, char** argv ) { return status; } /* end main */ +#endif diff --git a/src/WOKNT/WOKNT_ReplIfChWith.c b/src/WOKNT/WOKNT_ReplIfChWith.c index b83c4b2..30bfafa 100755 --- a/src/WOKNT/WOKNT_ReplIfChWith.c +++ b/src/WOKNT/WOKNT_ReplIfChWith.c @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include #include @@ -28,3 +29,4 @@ __declspec( dllexport ) int wokReplIfChWith ( int argc, char** argv ) { return status; } /* end main */ +#endif diff --git a/src/WOKNT/WOKNT_Shell.cxx b/src/WOKNT/WOKNT_Shell.cxx index ec3fd20..a6f0e46 100755 --- a/src/WOKNT/WOKNT_Shell.cxx +++ b/src/WOKNT/WOKNT_Shell.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include #include @@ -608,3 +609,4 @@ static void _WOKNT_get_env ( Handle( TColStd_HSequenceOfHAsciiString )& seq ) FreeEnvironmentStrings ( env ); } // end _WOKNT_get_env +#endif diff --git a/src/WOKNT/WOKNT_ShellManager.cxx b/src/WOKNT/WOKNT_ShellManager.cxx index 20896cd..529521e 100755 --- a/src/WOKNT/WOKNT_ShellManager.cxx +++ b/src/WOKNT/WOKNT_ShellManager.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include #include @@ -96,3 +97,4 @@ static BOOL CALLBACK interruptHandler ( DWORD dwCode ) { return TRUE; } // end interruptHandler +#endif diff --git a/src/WOKNT/WOKNT_ShellOutput.cxx b/src/WOKNT/WOKNT_ShellOutput.cxx index 90c4664..cb5e596 100755 --- a/src/WOKNT/WOKNT_ShellOutput.cxx +++ b/src/WOKNT/WOKNT_ShellOutput.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include @@ -12,3 +13,4 @@ void WOKNT_ShellOutput :: Cleanup () { if ( ( HANDLE )myFileChannel != INVALID_HANDLE_VALUE ) Close (); } // end WOKNT_ShellOutput :: Cleanup +#endif diff --git a/src/WOKNT/WOKNT_Shell_1.cxx b/src/WOKNT/WOKNT_Shell_1.cxx index f13a5d5..01f239e 100755 --- a/src/WOKNT/WOKNT_Shell_1.cxx +++ b/src/WOKNT/WOKNT_Shell_1.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include @@ -433,3 +434,4 @@ static void __fastcall _WOKNT_strip_string ( Handle( TCollection_HAsciiString ) } // end else } // end _WOKNT_strip_string +#endif diff --git a/src/WOKNT/WOKNT_chmod.cxx b/src/WOKNT/WOKNT_chmod.cxx index 9afbc84..21fa77e 100755 --- a/src/WOKNT/WOKNT_chmod.cxx +++ b/src/WOKNT/WOKNT_chmod.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define EXPORT #include #include @@ -267,3 +268,4 @@ static BOOL _chmod_func ( LPTSTR fName, BOOL fDir, void* data ) { return TRUE; } // end _chmod_func +#endif diff --git a/src/WOKNT/WOKNT_cmp.c b/src/WOKNT/WOKNT_cmp.c index ef31294..dcd25c6 100755 --- a/src/WOKNT/WOKNT_cmp.c +++ b/src/WOKNT/WOKNT_cmp.c @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include @@ -65,3 +66,4 @@ __declspec( dllexport ) int wokCMP ( int argc, char** argv ) return retVal; } +#endif diff --git a/src/WOKNT/WOKNT_cp.cxx b/src/WOKNT/WOKNT_cp.cxx index d90796a..322e89e 100755 --- a/src/WOKNT/WOKNT_cp.cxx +++ b/src/WOKNT/WOKNT_cp.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define STRICT #include #include @@ -122,3 +123,4 @@ int wokCP( int argc, char** argv ) } return retVal; } +#endif diff --git a/src/WOKNT/WOKNT_mv.cxx b/src/WOKNT/WOKNT_mv.cxx index 1c6e77e..29dbf01 100755 --- a/src/WOKNT/WOKNT_mv.cxx +++ b/src/WOKNT/WOKNT_mv.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define EXPORT #define STRICT #include @@ -34,3 +35,4 @@ int wokMV ( int argc, char** argv ) { return 0; } // end main +#endif diff --git a/src/WOKNT/WOKNT_regexp_1.c b/src/WOKNT/WOKNT_regexp_1.c index 8305a0f..1b9f070 100755 --- a/src/WOKNT/WOKNT_regexp_1.c +++ b/src/WOKNT/WOKNT_regexp_1.c @@ -1,3 +1,4 @@ +#ifdef WNT /******************************************************************************/ /* Extended regular expression matching and search. */ /* Copyright (C) 1985 Free Software Foundation, Inc. */ @@ -26,10 +27,12 @@ /***/ /* JGA : to compile on Solaris */ +#ifdef HAVE_CONFIG_H +# include +#endif -#if !defined(HPUX) && !defined (WNT) -#include - +#ifdef HAVE_ALLOCA_H +# include #else /* alloca() non disponible sur HPUX 9.07 */ # ifdef __cplusplus @@ -1733,3 +1736,4 @@ static int bcmp_translate ( } /* end bcmp_translate */ /***/ /******************************************************************************/ +#endif diff --git a/src/WOKNT/WOKNT_rm.cxx b/src/WOKNT/WOKNT_rm.cxx index 4a85aeb..a9b6954 100755 --- a/src/WOKNT/WOKNT_rm.cxx +++ b/src/WOKNT/WOKNT_rm.cxx @@ -1,3 +1,4 @@ +#ifdef WNT #define EXPORT #include #include @@ -195,3 +196,4 @@ static void _print_error ( LPCTSTR fName ) { cerr << "wokRM: could not remove " << fName << " - " << buffer << endl << flush; } // end _set_error +#endif -- 2.39.5