]> OCCT Git - occt-wok.git/commitdiff
No comments
authorcas <cas@opencascade.com>
Thu, 6 Jan 2000 17:56:55 +0000 (17:56 +0000)
committercas <cas@opencascade.com>
Thu, 6 Jan 2000 17:56:55 +0000 (17:56 +0000)
src/WOKStep/WOKStep_CDLUnitSource.cxx
src/WOKStep/WOKStep_Compile.cxx
src/WOKStep/WOKStep_Include.cxx
src/WOKStep/WOKStep_JiniExtract.cxx
src/WOKStep/WOKStep_MSFill.cxx
src/WOKStep/WOKStep_ProcessStep.cxx
src/WOKStep/WOKStep_WNTLink.cxx

index ca76dbf78004c3a3916bf776b559452f35703cba..eb8266d45663486c5c0c1eec5d29a57b0428bf62 100755 (executable)
@@ -7,7 +7,11 @@
 #ifndef DONT_COMPENSATE
 
 #include <stdio.h>
+#ifdef WNT
+#include <io.h>
+#else
 #include <unistd.h>
+#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index ba0a5613b581458c432d20cb372ea081479f6776..919b14616994820f17b830d342037793df3dd7f7 100755 (executable)
@@ -3,7 +3,11 @@
 // Author:     Jean GAUTIER
 //             <jga@cobrax>
 
+#ifdef WNT
+#include <io.h>
+#else
 #include <unistd.h>
+#endif
 #include <fstream.h>
 
 #include <TCollection_HAsciiString.hxx>
index 0106c2bfcb434a3d35cc14a085a99ed159ebf4f4..a161bd9e8ff5bce5d7fc3fb71b35f511b86bea6e 100755 (executable)
@@ -3,7 +3,11 @@
 // Author:     Jean GAUTIER
 //             <jga@cobrax>
 
+#ifdef WNT
+#include <io.h>
+#else
 #include <unistd.h>
+#endif
 
 #include <WOKTools_Messages.hxx>
 
index 4259b3eaece86f80481e6ffe4179b40931a46fa8..0271ef193d34d28af9fe9588370699bc1b6e8433 100755 (executable)
@@ -314,7 +314,11 @@ void WOKStep_JiniExtract::Execute(const Handle(WOKMake_HSequenceOfInputFile)& to
                    outfile = new WOKernel_File(outent->Path()->FileName(), Unit(), sourcetype);
                    istemplate = Standard_True;
                    break;
+#ifdef WNT
+                 case WOKNT_UnknownFile:
+#else
                  case WOKUnix_UnknownFile:
+#endif
                    if (!strcmp(outent->Path()->ExtensionName()->ToCString(),".java")) {
                      outfile = new WOKernel_File(outent->Path()->FileName(), Unit(), privincludetype);
                    }
index 7c3dea7f56461ca44a95204184141ebbbca9b447..6565b66d5a8fbbbce23e02608a37a462c261e4ce 100755 (executable)
@@ -6,7 +6,11 @@
 #ifndef DONT_COMPENSATE
 
 #include <stdio.h>
+#ifdef WNT
+#include <io.h>
+#else
 #include <unistd.h>
+#endif
 
 #include <sys/types.h>
 #include <sys/stat.h>
index 43605952381aba353da20f37f70c2b00c6db0ceb..46b5a7c8732679cb0425a9771934ae70a545cfae 100755 (executable)
@@ -5,7 +5,11 @@
 
 
 
+#ifdef WNT
+#include <io.h>
+#else
 #include <unistd.h>
+#endif
 #include <fstream.h>
 
 #include <TCollection_HAsciiString.hxx>
index a721bf49dc4de3669963ac5ef100a23a230402be..342ba1a4f5848024d83392ce3a724ff656b7fe37 100755 (executable)
@@ -246,13 +246,13 @@ void WOKStep_WNTLink::Execute(const Handle(WOKMake_HSequenceOfInputFile)& anExec
          stubName = Unit()->Params().Eval(WOKernel_IsToolkit(Unit()) ? "%STUBS_tkMain" : "%STUBS_uMain");
          dwLen    = ExpandEnvironmentStrings(stubName->ToCString(), NULL, 0);
 
-         char* buffer = (char *) aStorageManager.Allocate(dwLen+1);
+         char* buffer = (char *) Standard::Allocate(dwLen+1);
          memset(buffer, 0, dwLen+1);
          
          ExpandEnvironmentStrings(stubName->ToCString(), buffer, dwLen);
          buff     = new TCollection_HAsciiString(buffer);
 
-         aStorageManager.Free((void*&)buffer,dwLen+1);
+         Standard::Free((void*&)buffer,dwLen+1);
          seq->Append(buff);
 
        }
@@ -261,13 +261,13 @@ void WOKStep_WNTLink::Execute(const Handle(WOKMake_HSequenceOfInputFile)& anExec
       
       dwLen = ExpandEnvironmentStrings(stubName->ToCString(), NULL, 0);
 
-      char* buffer = (char *) aStorageManager.Allocate(dwLen+1);
+      char* buffer = (char *) Standard::Allocate(dwLen+1);
          memset(buffer, 0, dwLen+1);
          
       ExpandEnvironmentStrings(stubName->ToCString(), buffer, dwLen);
       
          buff  = new TCollection_HAsciiString(buffer);
-         aStorageManager.Free((void*&)buffer,dwLen+1);
+         Standard::Free((void*&)buffer,dwLen+1);
          seq->Append(buff);