[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.59 and 1.63

version 1.59, 2006/02/08 02:11:19 version 1.63, 2006/06/21 09:46:06
Line 44 
Line 44 
  * 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_asir.c,v 1.58 2005/07/26 00:58:50 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/ox_asir.c,v 1.62 2006/02/25 06:33:31 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 191  void ox_main(int argc,char **argv) {
Line 191  void ox_main(int argc,char **argv) {
                                                 asir_push_one((Obj)err);                                                  asir_push_one((Obj)err);
                                                 while ( NEXT(asir_infile) )                                                  while ( NEXT(asir_infile) )
                                                         closecurrentinput();                                                          closecurrentinput();
                                                   resetpvs();
                                         }                                          }
                                         break;                                          break;
                                 }                                  }
Line 703  int asir_executeString()
Line 704  int asir_executeString()
 #else  #else
         parse_strp = cmd;          parse_strp = cmd;
 #endif  #endif
           asir_infile->ln = 1;
         if ( mainparse(&snode) ) {          if ( mainparse(&snode) ) {
                 return -1;                  return -1;
         }          }
Line 858  void ox_asir_init(int argc,char **argv,char *servernam
Line 860  void ox_asir_init(int argc,char **argv,char *servernam
         FILE *ifp;          FILE *ifp;
         char *homedir;          char *homedir;
         char *ptr;          char *ptr;
           int do_server_sav;
 #if !defined(VISUAL)  #if !defined(VISUAL)
         int tmp;          int tmp;
 #endif  #endif
Line 916  void ox_asir_init(int argc,char **argv,char *servernam
Line 919  void ox_asir_init(int argc,char **argv,char *servernam
   
         if ( do_asirrc && (ifp = fopen(ifname,"r")) ) {          if ( do_asirrc && (ifp = fopen(ifname,"r")) ) {
                 fclose(ifp);                  fclose(ifp);
                 execasirfile(ifname);                  do_server_sav = do_server_in_X11;
                   do_server_in_X11 = 0;
                   if ( !SETJMP(main_env) )
                           execasirfile(ifname);
                   do_server_in_X11 = do_server_sav;
         }          }
   
 /* XXX Windows compatibility */  /* XXX Windows compatibility */
Line 1179  int asir_ox_init(int byteorder)
Line 1186  int asir_ox_init(int byteorder)
 #if defined(UINIT)  #if defined(UINIT)
         reg_sysf();          reg_sysf();
 #endif  #endif
           input_init(0,"string");
         sprintf(ifname,"%s/.asirrc",getenv("HOME"));          sprintf(ifname,"%s/.asirrc",getenv("HOME"));
         if ( do_asirrc && (ifp = fopen(ifname,"r")) ) {          if ( do_asirrc && (ifp = fopen(ifname,"r")) ) {
                 input_init(ifp,ifname);  
                 if ( !SETJMP(asir_infile->jmpbuf) ) {  
                         asir_infile->ready_for_longjmp;  
                         read_eval_loop();  
                 }  
                 fclose(ifp);                  fclose(ifp);
                   if ( !SETJMP(main_env) )
                           execasirfile(ifname);
         }          }
         input_init(0,"string");  
   
         asir_OperandStackSize = BUFSIZ;          asir_OperandStackSize = BUFSIZ;
         asir_OperandStack = (Obj *)CALLOC(asir_OperandStackSize,sizeof(Obj));          asir_OperandStack = (Obj *)CALLOC(asir_OperandStackSize,sizeof(Obj));

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.63

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