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

Diff for /OpenXM_contrib2/asir2018/parse/puref.c between version 1.1 and 1.2

version 1.1, 2018/09/19 05:45:08 version 1.2, 2018/09/28 08:20:29
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: OpenXM_contrib2/asir2018/parse/puref.c,v 1.1 2018/09/19 05:45:08 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "parse.h"  #include "parse.h"
Line 522  void evalins(PFINS ins,int prec,Obj *rp)
Line 522  void evalins(PFINS ins,int prec,Obj *rp)
       NEXTNODE(n0,n); BDY(n) = (pointer)tad[i].arg;        NEXTNODE(n0,n); BDY(n) = (pointer)tad[i].arg;
     }      }
     if ( prec ) {      if ( prec ) {
       NEXTNODE(n0,n); STOQ(prec,q); BDY(n) = (pointer)q;        NEXTNODE(n0,n); STOZ(prec,q); BDY(n) = (pointer)q;
     }      }
     if ( n0 )      if ( n0 )
       NEXT(n) = 0;        NEXT(n) = 0;
Line 697  void simplify_factorial_ins(PFINS ins,Obj *rp)
Line 697  void simplify_factorial_ins(PFINS ins,Obj *rp)
   ad = ins->ad;    ad = ins->ad;
   a = ad[0].arg;    a = ad[0].arg;
   if ( !ad[0].d && INT(a) && smallz((Z)a) ) {    if ( !ad[0].d && INT(a) && smallz((Z)a) ) {
     factorialz(QTOS((Z)a),&q);      factorialz(ZTOS((Z)a),&q);
     *rp = (Obj)q;      *rp = (Obj)q;
   } else simplify_elemfunc_ins(ins,rp);    } else simplify_elemfunc_ins(ins,rp);
 }  }

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

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