[BACK]Return to asir_sm.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / parse

Diff for /OpenXM_contrib2/asir2000/parse/asir_sm.c between version 1.2 and 1.8

version 1.2, 2000/08/21 08:31:45 version 1.8, 2012/12/17 07:20:45
Line 23 
Line 23 
  * shall be made on your publication or presentation in any form of the   * shall be made on your publication or presentation in any form of the
  * results obtained by use of the SOFTWARE.   * results obtained by use of the SOFTWARE.
  * (4) In the event that you modify the SOFTWARE, you shall notify FLL by   * (4) In the event that you modify the SOFTWARE, you shall notify FLL by
  * e-mail at risa-admin@flab.fujitsu.co.jp of the detailed specification   * e-mail at risa-admin@sec.flab.fujitsu.co.jp of the detailed specification
  * for such modification or the source code of the modified part of the   * for such modification or the source code of the modified part of the
  * SOFTWARE.   * SOFTWARE.
  *   *
Line 45 
Line 45 
  * 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.1.1.1 1999/12/03 07:39:11 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/asir_sm.c,v 1.7 2004/06/15 00:56:52 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 53 
Line 53 
 #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;
 extern int *StackBottom;  
 extern int ox_do_copy, ox_do_count, ox_count_length;  extern int ox_do_copy, ox_do_count, ox_count_length;
 extern char *ox_copy_bptr;  extern char *ox_copy_bptr;
   
Line 83  Asir_Start()
Line 83  Asir_Start()
         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)
         param_init();          param_init();
 #endif  #endif
         StackBottom = &tmp + 1; /* XXX */  
         rtime_init();          rtime_init();
         env_init();          env_init();
         endian_init();          endian_init();
Line 98  Asir_Start()
Line 98  Asir_Start()
 #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();
Line 147  char *s;
Line 146  char *s;
 {  {
         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();
Line 201  char *Asir_PopString()
Line 202  char *Asir_PopString()
                 soutput_init(buf);                  soutput_init(buf);
                 sprintexpr(CO,val);                  sprintexpr(CO,val);
                 l = strlen(buf);                  l = strlen(buf);
                 obuf = (char *)GC_malloc(l+1);                  obuf = (char *)MALLOC(l+1);
                 strcpy(obuf,buf);                  strcpy(obuf,buf);
                 return obuf;                  return obuf;
         }          }
Line 258  int *size;
Line 259  int *size;
         saveobj(0,val);          saveobj(0,val);
         *size = ox_count_length;          *size = ox_count_length;
         ox_count_length = 0; ox_do_count = 0;          ox_count_length = 0; ox_do_count = 0;
         ox_copy_bptr = buf = (char *)GC_malloc(*size);          ox_copy_bptr = buf = (char *)MALLOC(*size);
         savevl(0,vl);          savevl(0,vl);
         saveobj(0,val);          saveobj(0,val);
         ox_copy_bptr = 0;          ox_copy_bptr = 0;

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.8

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