[BACK]Return to ox_pari.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_pari

Diff for /OpenXM/src/ox_pari/ox_pari.c between version 1.15 and 1.16

version 1.15, 2016/09/23 07:03:29 version 1.16, 2018/03/27 07:05:17
Line 1 
Line 1 
 /*  $OpenXM: OpenXM/src/ox_pari/ox_pari.c,v 1.14 2016/08/23 03:03:26 ohara Exp $  */  /*  $OpenXM: OpenXM/src/ox_pari/ox_pari.c,v 1.15 2016/09/23 07:03:29 noro Exp $  */
   
 #include "ox_pari.h"  #include "ox_pari.h"
   
Line 85  void pops(int n)
Line 85  void pops(int n)
   
 int sm_mathcap()  int sm_mathcap()
 {  {
   #if 0
   char *opts[] = {"no_ox_reset", NULL};    char *opts[] = {"no_ox_reset", NULL};
   mathcap_init2(OX_PARI_VERSION, ID_STRING, "ox_pari", NULL, NULL, opts);    mathcap_init2(OX_PARI_VERSION, ID_STRING, "ox_pari", NULL, NULL, opts);
   #else
     mathcap_init2(OX_PARI_VERSION, ID_STRING, "ox_pari", NULL, NULL, NULL);
   #endif
   push((cmo*)oxf_cmo_mathcap(fd_rw));    push((cmo*)oxf_cmo_mathcap(fd_rw));
   return 0;    return 0;
 }  }
Line 291  int receive()
Line 295  int receive()
   return 0;    return 0;
 }  }
   
   jmp_buf ox_env;
   
   void usr1_handler(int sig)
   {
     longjmp(ox_env,1);
   }
   
 int main()  int main()
 {  {
   init_gc();    if ( setjmp(ox_env) ) {
   ox_stderr_init(stderr);      fprintf(stderr,"resetting libpari and sending OX_SYNC_BALL...");
   initialize_stack();      initialize_stack();
   init_pari();      init_pari();
       send_ox_tag(fd_rw,OX_SYNC_BALL);
       fprintf(stderr,"done\n");
     } else {
       init_gc();
       ox_stderr_init(stderr);
       initialize_stack();
       init_pari();
   
       fprintf(stderr,"ox_pari\n");
   
   fprintf(stderr,"ox_pari\n");      fd_rw = oxf_open(3);
       oxf_determine_byteorder_server(fd_rw);
   fd_rw = oxf_open(3);    }
   oxf_determine_byteorder_server(fd_rw);    signal(SIGUSR1,usr1_handler);
   
   while(1){    while(1){
     receive();      receive();

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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