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

Diff for /OpenXM_contrib2/asir2000/io/ox_asir.c between version 1.5 and 1.10

version 1.5, 2000/01/31 03:18:05 version 1.10, 2000/03/16 01:07:00
Line 1 
Line 1 
 /* $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.4 2000/01/19 09:31:00 noro Exp $ */  /* $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.9 2000/03/10 06:42:23 noro Exp $ */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
   #include "signal.h"
 #include "ox.h"  #include "ox.h"
 #include "version.h"  #include "version.h"
   #if PARI
   #include "genpari.h"
   #endif
   
 void ox_usr1_handler();  void ox_usr1_handler();
   
   
 extern jmp_buf environnement;  extern jmp_buf environnement;
   
 extern int do_message;  extern int do_message;
Line 699  int asir_ox_pop_cmo(void *cmo, int limit)
Line 704  int asir_ox_pop_cmo(void *cmo, int limit)
         int len;          int len;
   
         obj = asir_pop_one();          obj = asir_pop_one();
           if ( !valid_as_cmo(obj) ) {
                   fprintf(stderr,"The object at the stack top is invalid as a CMO.\n");
                   return -1;
           }
         len = count_as_cmo(obj);          len = count_as_cmo(obj);
         if ( len <= limit ) {          if ( len <= limit ) {
                 ox_copy_init(cmo);                  ox_copy_init(cmo);
Line 714  int asir_ox_pop_cmo(void *cmo, int limit)
Line 723  int asir_ox_pop_cmo(void *cmo, int limit)
   
 void asir_ox_push_cmd(unsigned int cmd)  void asir_ox_push_cmd(unsigned int cmd)
 {  {
         asir_do_cmd(cmd,0);          int ret;
           ERR err;
           extern char LastError[];
   
           if ( ret = setjmp(env) ) {
                   if ( ret == 1 ) {
                           create_error(&err,0,LastError); /* XXX */
                           asir_push_one((Obj)err);
                   }
           } else
                   asir_do_cmd(cmd,0);
 }  }
   
 /*  /*
Line 724  void asir_ox_push_cmd(unsigned int cmd)
Line 743  void asir_ox_push_cmd(unsigned int cmd)
 void asir_ox_execute_string(char *s)  void asir_ox_execute_string(char *s)
 {  {
         STRING str;          STRING str;
           int ret;
           ERR err;
           extern char LastError[];
   
         MKSTR(str,s);          MKSTR(str,s);
         asir_push_one((Obj)str);          asir_push_one((Obj)str);
         asir_executeString();          if ( ret = setjmp(env) ) {
                   if ( ret == 1 ) {
                           create_error(&err,0,LastError); /* XXX */
                           asir_push_one((Obj)err);
                   }
           } else
                   asir_executeString();
 }  }
   
 /*  /*
Line 741  int asir_ox_peek_cmo_size()
Line 769  int asir_ox_peek_cmo_size()
         int len;          int len;
   
         obj = asir_pop_one();          obj = asir_pop_one();
           if ( !valid_as_cmo(obj) ) {
                   fprintf(stderr,"The object at the stack top is invalid as a CMO.\n");
                   return 0;
           }
         len = count_as_cmo(obj);          len = count_as_cmo(obj);
         asir_push_one(obj);          asir_push_one(obj);
         return len;          return len;
Line 767  void asir_ox_init(int byteorder)
Line 799  void asir_ox_init(int byteorder)
         FILE *ifp;          FILE *ifp;
   
 #if !defined(VISUAL) && !MPI  #if !defined(VISUAL) && !MPI
         do_server_in_X11 = 1; /* XXX */          do_server_in_X11 = 0; /* XXX */
 #endif  #endif
         asir_save_handler();          asir_save_handler();
 #if PARI  #if PARI

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.10

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