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

Diff for /OpenXM_contrib2/asir2000/io/spexpr.c between version 1.42 and 1.44

version 1.42, 2018/03/29 07:50:06 version 1.44, 2019/12/24 10:26:38
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/spexpr.c,v 1.41 2018/03/29 01:32:53 noro Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/spexpr.c,v 1.43 2019/11/12 10:52:05 kondoh Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "al.h"  #include "al.h"
Line 115  extern int hideargs;
Line 115  extern int hideargs;
 #define PRINTFNODENODE sprintfnodenode  #define PRINTFNODENODE sprintfnodenode
 #define PRINTFARGS sprintfargs  #define PRINTFARGS sprintfargs
   
   #if defined(INTERVAL)
   #define PRINTBF4ITV sprintbf4itv
   #endif
   
 #include "pexpr_body.c"  #include "pexpr_body.c"
   
 /* special functions for string output */  /* special functions for string output */
Line 136  void sprintbf(BF a)
Line 140  void sprintbf(BF a)
   TAIL PUTS(s);    TAIL PUTS(s);
   mpfr_free_str(s);    mpfr_free_str(s);
 }  }
   
   #if defined(INTERVAL)
   void sprintbf4itv(BF a)
   {
     int dprec;
     char fbuf[BUFSIZ];
     char *s;
   
     if ( !a ) {
       TAIL PUTS("0");
     } else {
       dprec = a->body->_mpfr_prec*0.30103;
       dprec += 1;
       sprintf(fbuf,"%%.%dR%c",dprec,(double_output==1)?'f':(double_output==2)?'e':'g');
       mpfr_asprintf(&s,fbuf,a->body);
       TAIL PUTS(s);
       mpfr_free_str(s);
     }
   }
   #endif

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.44

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