version 1.4, 2000/11/14 08:38:40 |
version 1.7, 2004/06/15 00:56:52 |
|
|
* 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/parse/asir_sm.c,v 1.3 2000/08/22 05:04:25 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/parse/asir_sm.c,v 1.6 2004/02/13 05:48:36 saito Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
|
|
#include <console.h> |
#include <console.h> |
#endif |
#endif |
|
|
#if PARI |
#if defined(PARI) |
#include "genpari.h" |
#include "genpari.h" |
|
# if !(PARI_VERSION_CODE > 131588) |
extern jmp_buf environnement; |
extern jmp_buf environnement; |
|
# endif |
#endif |
#endif |
|
|
extern jmp_buf env; |
extern jmp_buf env; |
|
|
asir_save_handler(); |
asir_save_handler(); |
if ( ox_asir_initialized ) |
if ( ox_asir_initialized ) |
return; |
return; |
|
GC_init(); |
ox_asir_initialized = 1; |
ox_asir_initialized = 1; |
ox_do_copy = 1; |
ox_do_copy = 1; |
#if defined(THINK_C) |
#if defined(THINK_C) |
|
|
#if defined(TOWNS) && !defined(GO32) && !defined(__WIN32__) |
#if defined(TOWNS) && !defined(GO32) && !defined(__WIN32__) |
disable_ctrl_c(); |
disable_ctrl_c(); |
#endif |
#endif |
GC_init(); |
|
/* process_args(argc,argv); */ |
/* process_args(argc,argv); */ |
#if 0 |
#if 0 |
copyright(); |
copyright(); |
|
|
{ |
{ |
SNODE snode; |
SNODE snode; |
pointer val; |
pointer val; |
#if PARI |
#if defined(PARI) |
static long tloc,listloc; |
static long tloc,listloc; |
extern long avloc; |
extern long avloc; |
|
|
Asir_Start(); |
Asir_Start(); |
asir_set_handler(); |
asir_set_handler(); |
avloc = avma; tloc = tglobal; listloc = marklist(); |
avloc = avma; tloc = tglobal; listloc = marklist(); |
|
# if !(PARI_VERSION_CODE > 131588) |
if ( setjmp(environnement) ) { |
if ( setjmp(environnement) ) { |
avma = avloc; tglobal = tloc; recover(listloc); |
avma = avloc; tglobal = tloc; recover(listloc); |
resetenv(""); |
resetenv(""); |
} |
} |
|
# endif |
#endif |
#endif |
if ( setjmp(env) ) { |
if ( setjmp(env) ) { |
asir_reset_handler(); |
asir_reset_handler(); |