]> OCCT Git - occt-wok.git/commitdiff
OCC13258 Removing fix of OCC13258 at 25.08.06
authorcascade <cascade@opencascade.com>
Tue, 29 Aug 2006 23:05:05 +0000 (23:05 +0000)
committercascade <cascade@opencascade.com>
Tue, 29 Aug 2006 23:05:05 +0000 (23:05 +0000)
src/WOKNT/WOKNT_MixedOutput.cdl
src/WOKNT/WOKNT_MixedOutput.cxx
src/WOKNT/WOKNT_OutErrOutput.cdl
src/WOKNT/WOKNT_OutErrOutput.cxx
src/WOKNT/WOKNT_ShellOutput.cdl

index 75e796245c9dd8652a8b1d90094a89247bd3e391..18d5660c7b068b84a032922ff46ddceec90a7008 100755 (executable)
@@ -22,7 +22,7 @@ private class MixedOutput from WOKNT inherits ShellOutput from WOKNT
     ---Purpose: dummy method to be used in derived class
     ---C++:     alias ~
 
-  OpenStdOut ( me : out ) returns Address from Standard is redefined static;
+  OpenStdOut ( me : out ) returns Integer from Standard is redefined static;
     ---Purpose: creates a pipe for reading a standard output of sub-process
     --          and returns a pipe handle.
     --  Warning: returns INVALID_HANDLE_VALUE in case of failure
@@ -30,7 +30,7 @@ private class MixedOutput from WOKNT inherits ShellOutput from WOKNT
   CloseStdOut ( me : out ) is redefined static;
     ---Purpose: closes write end of the 'STDOUT' pipe
 
-  OpenStdErr ( me : out ) returns Address from Standard is virtual;
+  OpenStdErr ( me : out ) returns Integer from Standard is virtual;
     ---Purpose: creates a pipe for reading a standard error output of sub-process
     --          and returns a pipe handle
     --  Warning: this method is simply calling 'OpenStdOut' method
@@ -63,7 +63,7 @@ private class MixedOutput from WOKNT inherits ShellOutput from WOKNT
 
  fields
  
-  myOutHandle : Address                 from Standard is protected;
+  myOutHandle : Integer                 from Standard is protected;
   myStdOut    : HSequenceOfHAsciiString from TColStd  is protected;
   
 end MixedOutput;
index f60b114b0380a59ec42969b09c2c2ab5fdbcc0ea..806aec2773b2cb4fac3c2037b038bed07c4654a7 100755 (executable)
@@ -14,7 +14,7 @@ void                                      __fastcall _WOKNT_clear_pipe ( HANDLE
 DWORD                                     __fastcall _WOKNT_nb_to_read ( HANDLE );
 Handle( TColStd_HSequenceOfHAsciiString ) __fastcall _WOKNT_read_pipe ( OSD_File*, HANDLE );
 void                                      __fastcall _WOKNT_create_pipe (
-                                                      Standard_Address*, Standard_Address*
+                                                      Standard_Integer*, Standard_Integer*
                                                      );
 
 WOKNT_MixedOutput :: WOKNT_MixedOutput () {
@@ -28,9 +28,9 @@ void WOKNT_MixedOutput :: Cleanup () {
 
 }  // end WOKNT_MixedOutput :: Cleanup
 
-Standard_Address WOKNT_MixedOutput :: OpenStdOut () {
+Standard_Integer WOKNT_MixedOutput :: OpenStdOut () {
 
- _WOKNT_create_pipe ((Standard_Address *)&myFileChannel, &myOutHandle);
+ _WOKNT_create_pipe ( &myFileChannel, &myOutHandle );
  myIO |= ( FLAG_PIPE | FLAG_READ_PIPE );
 
  return myOutHandle;
@@ -42,13 +42,13 @@ void WOKNT_MixedOutput :: CloseStdOut () {
  if (  ( HANDLE )myOutHandle != INVALID_HANDLE_VALUE  ) {
  
   CloseHandle (  ( HANDLE )myOutHandle  );
-  myOutHandle = (Standard_Address) INVALID_HANDLE_VALUE;
+  myOutHandle = ( Standard_Integer )INVALID_HANDLE_VALUE;
 
  }  // end if
 
 }  // end WOKNT_MixedOutput :: CloseStdOut
 
-Standard_Address WOKNT_MixedOutput :: OpenStdErr () {
+Standard_Integer WOKNT_MixedOutput :: OpenStdErr () {
 
  return (  ( HANDLE )myOutHandle == INVALID_HANDLE_VALUE  ) ?
          OpenStdOut () : myOutHandle;
@@ -171,15 +171,10 @@ Handle( TColStd_HSequenceOfHAsciiString ) __fastcall _WOKNT_read_pipe (
 
 }  // end _WOKNT_read_pipe
 
-//=======================================================================
-//function : _WOKNT_create_pipe
-//purpose  : 
-//=======================================================================
-
-void __fastcall _WOKNT_create_pipe (Standard_Address* readPipe,
-                                    Standard_Address* writePipe)
-{
-               
+void __fastcall _WOKNT_create_pipe (
+                 Standard_Integer* readPipe, Standard_Integer* writePipe
+                ) {
+                
  SECURITY_ATTRIBUTES sa;
 
  sa.nLength              = sizeof ( SECURITY_DESCRIPTOR );  // structure size
@@ -192,7 +187,7 @@ void __fastcall _WOKNT_create_pipe (Standard_Address* readPipe,
          &sa,                   // protection/inheritance
          4096                   // buffer size
         )
- ) *writePipe = ( Standard_Address )INVALID_HANDLE_VALUE;
+ ) *writePipe = ( Standard_Integer )INVALID_HANDLE_VALUE;
                 
 }  // end _WOKNT_create_pipe
 #endif
index d3638ce504a16a2a0ce99fbb66e7be00eabfc4c0..3ac89839bcb0bb8848b31dd8de75f707d0609662 100755 (executable)
@@ -22,7 +22,7 @@ private class OutErrOutput from WOKNT inherits MixedOutput from WOKNT
     ---Purpose: closes read end of the 'STDERR' handle
     ---C++:     alias ~
 
-  OpenStdErr ( me : out ) returns Address from Standard is redefined static;
+  OpenStdErr ( me : out ) returns Integer from Standard is redefined static;
     ---Purpose: creates a pipe for reading a standard error output of sub-process
     --          and returns a pipe handle
     --  Warning: returns INVALID_HANDLE_VALUE in case of failure 
@@ -46,8 +46,8 @@ private class OutErrOutput from WOKNT inherits MixedOutput from WOKNT
 
  fields
  
-  myErrHandleR : Address                 from Standard;
-  myErrHandleW : Address                 from Standard;
+  myErrHandleR : Integer                 from Standard;
+  myErrHandleW : Integer                 from Standard;
   myStdErr     : HSequenceOfHAsciiString from TColStd;
 
 end OutErrOutput;
index 1463c417c6dfd85641bd3492cc193c9a2075d45a..f862bb2b90c53c298d7b7534fa74f6d235b81b4f 100755 (executable)
@@ -11,7 +11,7 @@ void                                      __fastcall _WOKNT_clear_pipe ( HANDLE
 DWORD                                     __fastcall _WOKNT_nb_to_read ( HANDLE );
 Handle( TColStd_HSequenceOfHAsciiString ) __fastcall _WOKNT_read_pipe ( OSD_File*, HANDLE );
 void                                      __fastcall _WOKNT_create_pipe (
-                                                      Standard_Address*, Standard_Address*
+                                                      Standard_Integer*, Standard_Integer*
                                                      );
 
 WOKNT_OutErrOutput :: WOKNT_OutErrOutput () {
@@ -26,7 +26,7 @@ void WOKNT_OutErrOutput :: Cleanup () {
  if (  ( HANDLE )myErrHandleR != INVALID_HANDLE_VALUE  ) {
  
   CloseHandle (  ( HANDLE )myErrHandleR  );
-  myErrHandleR = (Standard_Address) INVALID_HANDLE_VALUE;
+  myErrHandleR = ( Standard_Integer )INVALID_HANDLE_VALUE;
 
  }  // end if
 
@@ -34,7 +34,7 @@ void WOKNT_OutErrOutput :: Cleanup () {
 
 }  // end WOKNT_OutErrOutput :: Cleanup
 
-Standard_Address WOKNT_OutErrOutput :: OpenStdErr () {
+Standard_Integer WOKNT_OutErrOutput :: OpenStdErr () {
 
  _WOKNT_create_pipe ( &myErrHandleR, &myErrHandleW );
  myIO |= ( FLAG_PIPE | FLAG_READ_PIPE );
@@ -48,7 +48,7 @@ void WOKNT_OutErrOutput :: CloseStdErr () {
  if (  ( HANDLE )myErrHandleW != INVALID_HANDLE_VALUE  ) {
  
   CloseHandle (  ( HANDLE )myErrHandleW  );
-  myErrHandleW = ( Standard_Address )INVALID_HANDLE_VALUE;
+  myErrHandleW = ( Standard_Integer )INVALID_HANDLE_VALUE;
 
  }  // end if
 
@@ -65,11 +65,12 @@ void WOKNT_OutErrOutput :: Clear () {
 Handle( TColStd_HSequenceOfHAsciiString ) WOKNT_OutErrOutput :: Errors () {
 
  Handle( TColStd_HSequenceOfHAsciiString ) retVal;
const Standard_Size                       handle (myFileChannel);
Standard_Integer                          handle;
 
- myFileChannel = (Standard_Size) myErrHandleR;
+ handle        = myFileChannel;
+ myFileChannel = myErrHandleR;
 
- retVal = _WOKNT_read_pipe (  this, ( HANDLE )myErrHandleR  );
+ retVal = _WOKNT_read_pipe (  this, ( HANDLE )myFileChannel  );
 
  myFileChannel = handle;
 
index 38bd77e11ec2a1671bf249c3f5c501b9e4e0733c..c3857923d5af63de84da3e0d828f9bd2f578af04 100755 (executable)
@@ -30,7 +30,7 @@ private deferred class ShellOutput from WOKNT inherits File from OSD
   Errors ( me : out ) returns HSequenceOfHAsciiString from TColStd is deferred;
     ---Purpose: returns standard error output of sub-process
 
-  OpenStdOut ( me : out ) returns Address from Standard is deferred;
+  OpenStdOut ( me : out ) returns Integer from Standard is deferred;
     ---Purpose: creates an I/O object for reading a standard output of sub-process
     --          and returns this object handle.
     --  Warning: returns INVALID_HANDLE_VALUE in case of failure
@@ -38,7 +38,7 @@ private deferred class ShellOutput from WOKNT inherits File from OSD
   CloseStdOut ( me : out ) is deferred;
     ---Purpose: closes an I/O object's handle opened by 'OpenStdOut' method
 
-  OpenStdErr ( me : out ) returns Address from Standard is deferred;
+  OpenStdErr ( me : out ) returns Integer from Standard is deferred;
     ---Purpose: creates an I/O object for reading a standard error output of sub-process
     --          and returns this object handle
     --  Warning: returns INVALID_HANDLE_VALUE in case of failure