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

Diff for /OpenXM_contrib2/asir2000/parse/eval.c between version 1.70 and 1.75

version 1.70, 2014/08/09 06:08:11 version 1.75, 2016/08/24 08:21:03
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/eval.c,v 1.69 2013/11/21 06:48:04 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/parse/eval.c,v 1.74 2015/08/14 13:51:56 fujimoto Exp $
 */  */
 #include <ctype.h>  #include <ctype.h>
 #include "ca.h"  #include "ca.h"
Line 57 
Line 57 
 #endif  #endif
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/stat.h>  #include <sys/stat.h>
 #if defined(PARI)  
 #include "genpari.h"  
 #endif  
   
 extern JMP_BUF timer_env;  extern JMP_BUF timer_env;
 extern FUNC cur_binf;  extern FUNC cur_binf;
Line 67  extern NODE PVSS;
Line 64  extern NODE PVSS;
   
 int f_break,f_return,f_continue;  int f_break,f_return,f_continue;
 int evalstatline;  int evalstatline;
 int recv_intr;  
 int show_crossref;  int show_crossref;
 int at_root;  int at_root;
 void gen_searchf_searchonly(char *name,FUNC *r,int global);  void gen_searchf_searchonly(char *name,FUNC *r,int global);
Line 95  pointer eval(FNODE f)
Line 91  pointer eval(FNODE f)
         RANGE range;          RANGE range;
         QUOTE expr,pattern;          QUOTE expr,pattern;
   
 #if defined(VISUAL)  #if defined(VISUAL) || defined(__MINGW32__)
         if ( recv_intr ) {          check_intr();
 #include <signal.h>  
                 if ( recv_intr == 1 ) {  
                         recv_intr = 0;  
                         int_handler(SIGINT);  
                 } else {  
                         recv_intr = 0;  
                         ox_usr1_handler(0);  
                 }  
         }  
 #endif  #endif
         if ( !f )          if ( !f )
                 return ( 0 );                  return ( 0 );
Line 196  pointer eval(FNODE f)
Line 183  pointer eval(FNODE f)
                         val = eval_rec_mapf((FUNC)FA0(f),(FNODE)FA1(f)); break;                          val = eval_rec_mapf((FUNC)FA0(f),(FNODE)FA1(f)); break;
                 case I_IFUNC:                  case I_IFUNC:
                         val = evalif((FNODE)FA0(f),(FNODE)FA1(f),(FNODE)FA2(f)); break;                          val = evalif((FNODE)FA0(f),(FNODE)FA1(f),(FNODE)FA2(f)); break;
 #if !defined(VISUAL)  #if !defined(VISUAL) && !defined(__MINGW32__)
                 case I_TIMER:                  case I_TIMER:
                         {                          {
                                 int interval;                                  int interval;
Line 733  pointer evalstat(SNODE f)
Line 720  pointer evalstat(SNODE f)
                 case S_BP:                  case S_BP:
                         if ( !nextbp && (!FA1(f) || eval((FNODE)FA1(f))) ) {                          if ( !nextbp && (!FA1(f) || eval((FNODE)FA1(f))) ) {
                                 if ( (FNODE)FA2(f) ) {                                  if ( (FNODE)FA2(f) ) {
 #if defined(PARI)  
                                         pari_outfile = stderr;  
 #endif  
                                         asir_out = stderr;                                          asir_out = stderr;
                                         printexpr(CO,eval((FNODE)FA2(f)));                                          printexpr(CO,eval((FNODE)FA2(f)));
                                         putc('\n',asir_out); fflush(asir_out);                                          putc('\n',asir_out); fflush(asir_out);
 #if defined(PARI)  
                                         pari_outfile = stdout;  
 #endif  
                                         asir_out = stdout;                                          asir_out = stdout;
                                 } else {                                  } else {
                                         nextbp = 1; nextbplevel = 0;                                          nextbp = 1; nextbplevel = 0;
Line 936  pointer evalf(FUNC f,FNODE a,FNODE opt)
Line 917  pointer evalf(FUNC f,FNODE a,FNODE opt)
                         break;                          break;
                 case A_USR:                  case A_USR:
                         /* stack check */                          /* stack check */
 #if !defined(VISUAL) && !defined(__CYGWIN__)  #if !defined(VISUAL) && !defined(__MINGW32__) && !defined(__CYGWIN__)
                         if ( !stack_size ) {                          if ( !stack_size ) {
                                 struct rlimit rl;                                  struct rlimit rl;
                                 getrlimit(RLIMIT_STACK,&rl);                                  getrlimit(RLIMIT_STACK,&rl);

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.75

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