version 1.5, 2005/10/19 04:51:16 |
version 1.12, 2019/03/28 08:03:07 |
Line 91 void AsirMain(int,char **); |
|
Line 91 void AsirMain(int,char **); |
|
void OxAsirMain(int,char **); |
void OxAsirMain(int,char **); |
void OxPlotMain(int,char **); |
void OxPlotMain(int,char **); |
|
|
void Init_Asir(int,char **); |
|
int Call_Asir(char *,void *); |
|
void int_handler(int); |
void int_handler(int); |
void set_debug_handles(int); |
void set_debug_handles(int); |
int create_debug_gui(); |
int create_debug_gui(); |
Line 124 void watch_intr() { |
|
Line 122 void watch_intr() { |
|
if ( doing_batch ) |
if ( doing_batch ) |
send_intr(); |
send_intr(); |
/* for Asir; recv_intr is reset to 0 in Asir */ |
/* for Asir; recv_intr is reset to 0 in Asir */ |
|
enter_signal_cs(); |
recv_intr = 1; |
recv_intr = 1; |
|
leave_signal_cs(); |
|
PulseEvent(hIntr_Ack); |
break; |
break; |
case WAIT_OBJECT_0+1: /* hKill */ |
case WAIT_OBJECT_0+1: /* hKill */ |
default: |
default: |
terminate_debug_gui(); |
terminate_debug_gui(); |
emergency = 1; /* XXX */ |
emergency = 1; /* XXX */ |
asir_terminate(2); |
asir_terminate(3); |
exit(0); |
exit(0); |
/* NOTREACHED */ |
/* NOTREACHED */ |
break; |
break; |
Line 150 void ox_watch_intr() { |
|
Line 151 void ox_watch_intr() { |
|
ResetEvent(hOxIntr); |
ResetEvent(hOxIntr); |
if ( doing_batch ) |
if ( doing_batch ) |
send_intr(); |
send_intr(); |
|
enter_signal_cs(); |
recv_intr = 1; |
recv_intr = 1; |
|
leave_signal_cs(); |
break; |
break; |
case WAIT_OBJECT_0+1: /* hOxReset */ |
case WAIT_OBJECT_0+1: /* hOxReset */ |
ResetEvent(hOxReset); |
ResetEvent(hOxReset); |
if ( doing_batch ) |
if ( doing_batch ) |
send_intr(); |
send_intr(); |
|
enter_signal_cs(); |
recv_intr = 2; |
recv_intr = 2; |
|
leave_signal_cs(); |
break; |
break; |
case WAIT_OBJECT_0+2: /* hOxKill */ |
case WAIT_OBJECT_0+2: /* hOxKill */ |
ResetEvent(hOxKill); |
ResetEvent(hOxKill); |
terminate_debug_gui(); |
terminate_debug_gui(); |
emergency = 1; /* XXX */ |
emergency = 1; /* XXX */ |
asir_terminate(2); |
asir_terminate(3); |
/* NOTREACHED */ |
/* NOTREACHED */ |
break; |
break; |
} |
} |
Line 323 void set_debug_handles(int on) |
|
Line 328 void set_debug_handles(int on) |
|
} |
} |
} |
} |
|
|
|
extern int wfep_mode; |
|
|
void Init_IO() |
void Init_IO() |
{ |
{ |
|
#if _MSC_VER < 1910 |
_setargv(); |
_setargv(); |
if ( !strcmp(__argv[0],"ox_asir") ) { |
#endif |
|
if ( !strncmp(__argv[0],"ox_asir",strlen("ox_asir")) ) { |
|
/* ox_asir or ox_asir_wfep */ |
|
if ( !strcmp(__argv[0],"ox_asir_wfep") ) wfep_mode = 1; |
OxAsirMain(__argc,__argv); |
OxAsirMain(__argc,__argv); |
exit(0); |
exit(0); |
} else if ( !strcmp(__argv[0],"ox_plot") ) |
} else if ( !strcmp(__argv[0],"ox_plot") ) |