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

Diff for /OpenXM_contrib2/asir2000/old/io.ox.c between version 1.4 and 1.5

version 1.4, 2003/03/07 06:39:58 version 1.5, 2015/08/06 10:01:53
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/old/io.ox.c,v 1.3 2003/03/07 03:12:30 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/old/io.ox.c,v 1.4 2003/03/07 06:39:58 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 91  static int remote_mc_len;
Line 91  static int remote_mc_len;
   
 void mclist_to_mc(LIST mclist,struct mathcap *mc);  void mclist_to_mc(LIST mclist,struct mathcap *mc);
   
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
 /* XXX : mainly used in engine2000/io.c, but declared here */  /* XXX : mainly used in engine2000/io.c, but declared here */
 HANDLE hStreamNotify,hStreamNotify_Ack;  HANDLE hStreamNotify,hStreamNotify_Ack;
   
Line 106  void cleanup_events()
Line 106  void cleanup_events()
   
 void ox_resetenv(char *s)  void ox_resetenv(char *s)
 {  {
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
         cleanup_events();          cleanup_events();
 #endif  #endif
         fprintf(stderr,"%s\n",s);          fprintf(stderr,"%s\n",s);
Line 356  void end_critical() {
Line 356  void end_critical() {
         critical_when_signal = 0;          critical_when_signal = 0;
         if ( ox_usr1_sent ) {          if ( ox_usr1_sent ) {
                 ox_usr1_sent = 0;                  ox_usr1_sent = 0;
 #if !defined(VISUAL)  #if !defined(VISUAL) && !defined(__MINGW32__) && !defined(__MINGW64__)
         ox_usr1_handler(SIGUSR1);          ox_usr1_handler(SIGUSR1);
 #else  #else
         ox_usr1_handler(0);          ox_usr1_handler(0);
Line 369  void end_critical() {
Line 369  void end_critical() {
   
 void ox_usr1_handler(int sig)  void ox_usr1_handler(int sig)
 {  {
 #if !defined(VISUAL)  #if !defined(VISUAL) && !defined(__MINGW32__) && !defined(__MINGW64__)
         signal(SIGUSR1,ox_usr1_handler);          signal(SIGUSR1,ox_usr1_handler);
 #endif  #endif
         if ( critical_when_signal ) {          if ( critical_when_signal ) {
Line 426  void wait_for_data(int s)
Line 426  void wait_for_data(int s)
         int sock;          int sock;
   
         if ( !FP_DATA_IS_AVAILABLE(iofp[s].in) ) {          if ( !FP_DATA_IS_AVAILABLE(iofp[s].in) ) {
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
                 sock = iofp[s].in->fildes;                  sock = iofp[s].in->fildes;
                 FD_ZERO(&r);                  FD_ZERO(&r);
                 FD_SET((unsigned int)sock,&r);                  FD_SET((unsigned int)sock,&r);
Line 683  void ox_flush_stream(int s)
Line 683  void ox_flush_stream(int s)
 {  {
         if ( ox_batch )          if ( ox_batch )
                 return;                  return;
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
         if ( _fileno(&iofp[s].out->fp) < 0 )          if ( _fileno(&iofp[s].out->fp) < 0 )
                 cflush(iofp[s].out);                  cflush(iofp[s].out);
         else          else
Line 697  void ox_flush_stream(int s)
Line 697  void ox_flush_stream(int s)
   
 void ox_flush_stream_force(int s)  void ox_flush_stream_force(int s)
 {  {
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__) || defined(__MINGW64__)
         if ( _fileno(&iofp[s].out->fp) < 0 )          if ( _fileno(&iofp[s].out->fp) < 0 )
                 cflush(iofp[s].out);                  cflush(iofp[s].out);
         else          else

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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