version 1.24, 2003/12/11 05:48:04 |
version 1.27, 2006/02/08 02:11:19 |
|
|
* 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.23 2003/12/10 07:37:40 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/ox.c,v 1.26 2004/12/17 03:09:08 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 120 static int available_cmo[] = { |
|
Line 120 static int available_cmo[] = { |
|
CMO_ZZ, CMO_QQ, CMO_ZERO, |
CMO_ZZ, CMO_QQ, CMO_ZERO, |
CMO_DMS_GENERIC, CMO_DMS_OF_N_VARIABLES, |
CMO_DMS_GENERIC, CMO_DMS_OF_N_VARIABLES, |
CMO_RING_BY_NAME, CMO_DISTRIBUTED_POLYNOMIAL, |
CMO_RING_BY_NAME, CMO_DISTRIBUTED_POLYNOMIAL, |
|
CMO_RATIONAL, |
CMO_RECURSIVE_POLYNOMIAL, CMO_UNIVARIATE_POLYNOMIAL, |
CMO_RECURSIVE_POLYNOMIAL, CMO_UNIVARIATE_POLYNOMIAL, |
CMO_INDETERMINATE, |
CMO_INDETERMINATE, |
CMO_TREE, |
CMO_TREE, |
Line 403 void end_critical() { |
|
Line 404 void end_critical() { |
|
} |
} |
} |
} |
|
|
extern FUNC registered_handler; |
extern NODE user_int_handler; |
|
|
void ox_usr1_handler(int sig) |
void ox_usr1_handler(int sig) |
{ |
{ |
|
NODE t; |
|
|
#if !defined(VISUAL) |
#if !defined(VISUAL) |
signal(SIGUSR1,ox_usr1_handler); |
signal(SIGUSR1,ox_usr1_handler); |
#endif |
#endif |
Line 415 void ox_usr1_handler(int sig) |
|
Line 418 void ox_usr1_handler(int sig) |
|
ox_usr1_sent = 1; |
ox_usr1_sent = 1; |
} else { |
} else { |
ox_flushing = 1; |
ox_flushing = 1; |
if ( registered_handler ) { |
if ( user_int_handler ) { |
fprintf(stderr, |
fprintf(stderr, |
"usr1 : calling the registered exception handler..."); |
"usr1 : calling the registered exception handlers..."); |
bevalf(registered_handler,0); |
for ( t = user_int_handler; t; t = NEXT(t) ) |
|
bevalf((FUNC)BDY(t),0); |
fprintf(stderr, "done.\n"); |
fprintf(stderr, "done.\n"); |
} |
} |
ox_resetenv("usr1 : return to toplevel by SIGUSR1"); |
ox_resetenv("usr1 : return to toplevel by SIGUSR1"); |
Line 510 void ox_send_data(int s,pointer p) |
|
Line 514 void ox_send_data(int s,pointer p) |
|
ERR err; |
ERR err; |
|
|
if ( ox_check && !ox_check_cmo(s,(Obj)p) ) { |
if ( ox_check && !ox_check_cmo(s,(Obj)p) ) { |
create_error(&err,ox_serial,"ox_send_data : Mathcap violation"); |
create_error(&err,ox_serial,"ox_send_data : Mathcap violation",0); |
p = (pointer)err; |
p = (pointer)err; |
} |
} |
begin_critical(); |
begin_critical(); |