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

Diff for /OpenXM_contrib2/asir2000/io/pexpr.c between version 1.38 and 1.41

version 1.38, 2004/12/17 03:09:08 version 1.41, 2015/08/20 08:53:05
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/pexpr.c,v 1.37 2004/07/13 07:59:54 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/pexpr.c,v 1.40 2015/08/04 06:20:45 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "al.h"  #include "al.h"
Line 56 
Line 56 
 #define FPRINT  #define FPRINT
 #endif  #endif
   
 #if defined(PARI)  
 #include "genpari.h"  
 #endif  
   
 extern int outputstyle;  extern int outputstyle;
   
 FILE *asir_out;  FILE *asir_out;
Line 107  int printmode = PRINTF_G;
Line 103  int printmode = PRINTF_G;
 #define PRINTBYTEARRAY printbytearray  #define PRINTBYTEARRAY printbytearray
 #define PRINTQUOTE printquote  #define PRINTQUOTE printquote
 #define PRINTQUOTEARG printquotearg  #define PRINTQUOTEARG printquotearg
   #define PRINTNBP printnbp
 #define PRINTERR printerr  #define PRINTERR printerr
 #define PRINTLF printlf  #define PRINTLF printlf
 #define PRINTLOP printlop  #define PRINTLOP printlop
Line 152  P p;
Line 149  P p;
                 return (mmono(COEF(DC(p))));                  return (mmono(COEF(DC(p))));
 }  }
   
 #if defined(PARI)  void printbf(BF a)
 void printbf(a)  
 BF a;  
 {  {
         sor(a->body,double_output ? 'f' : 'g',-1,0);          int dprec;
           char fbuf[BUFSIZ];
           char *s;
           dprec = (a->body->_mpfr_prec)*0.30103;
     if ( !dprec ) dprec = 1;
           sprintf(fbuf,"%%.%dR%c",dprec,double_output?'f':'g');
           mpfr_asprintf(&s,fbuf,a->body);
           TAIL PUTS(s);
           mpfr_free_str(s);
 }  }
 #endif  
   

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.41

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