[BACK]Return to ox.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / io

Diff for /OpenXM_contrib2/asir2000/io/ox.c between version 1.42 and 1.43

version 1.42, 2018/03/29 01:32:53 version 1.43, 2018/09/09 08:13:42
Line 44 
Line 44 
  * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY   * OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY
  * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,   * DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE,
  * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.   * PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE.
  * $OpenXM: OpenXM_contrib2/asir2000/io/ox.c,v 1.41 2018/03/12 02:37:08 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/ox.c,v 1.42 2018/03/29 01:32:53 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 965  void ox_flush_stream(int s)
Line 965  void ox_flush_stream(int s)
 {  {
   if ( ox_batch )    if ( ox_batch )
     return;      return;
 #if defined(VISUAL) || defined(__MINGW32__)  #if defined(VISUAL) || defined(__MINGW32__) || defined(MPI)
   if ( _fileno(&iofp[s].out->fp) < 0 )    if ( WSIO_fileno(iofp[s].out) < 0 )
     cflush(iofp[s].out);      cflush(iofp[s].out);
   else    else
 #elif MPI  
   if ( (char)fileno(&iofp[s].out->fp) < 0 )  
     cflush(iofp[s].out);  
   else  
 #endif  #endif
   fflush((FILE *)iofp[s].out);    fflush((FILE *)iofp[s].out);
 }  }
   
 void ox_flush_stream_force(int s)  void ox_flush_stream_force(int s)
 {  {
 #if defined(VISUAL) || defined(__MINGW32__)  #if defined(VISUAL) || defined(__MINGW32__) || defined(MPI)
   if ( _fileno(&iofp[s].out->fp) < 0 )    if ( WSIO_fileno(iofp[s].out) < 0 )
     cflush(iofp[s].out);  
   else  
 #elif MPI  
   if ( (char)fileno(&iofp[s].out->fp) < 0 )  
     cflush(iofp[s].out);      cflush(iofp[s].out);
   else    else
 #endif  #endif

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>