[BACK]Return to print.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_toolkit

Diff for /OpenXM/src/ox_toolkit/print.c between version 1.6 and 1.7

version 1.6, 2018/04/04 09:44:09 version 1.7, 2018/04/04 09:52:03
Line 1 
Line 1 
 /* -*- mode: C; coding: euc-japan -*- */  /* -*- mode: C; coding: euc-japan -*- */
 /* $OpenXM: OpenXM/src/ox_toolkit/print.c,v 1.5 2003/02/03 23:13:23 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_toolkit/print.c,v 1.6 2018/04/04 09:44:09 ohara Exp $ */
   
 /*  /*
 Functions in this module print a given CMO to console.  Functions in this module print a given CMO to console.
Line 17  static void print_cmo_mathcap(cmo_mathcap* c);
Line 17  static void print_cmo_mathcap(cmo_mathcap* c);
 static void print_cmo_string(cmo_string* c);  static void print_cmo_string(cmo_string* c);
 static void print_cmo_double(cmo_double* c);  static void print_cmo_double(cmo_double* c);
 static void print_cmo_bf(cmo_bf* c);  static void print_cmo_bf(cmo_bf* c);
   static void print_cmo_zz(cmo_zz* c);
   static void print_cmo_qq(cmo_qq* c);
 static void print_cmo_tree(cmo_tree* c);  static void print_cmo_tree(cmo_tree* c);
   
 void print_cmo(cmo* c)  void print_cmo(cmo* c)
Line 50  void print_cmo(cmo* c)
Line 52  void print_cmo(cmo* c)
     case CMO_DMS_GENERIC:      case CMO_DMS_GENERIC:
         ox_printf(")");          ox_printf(")");
         break;          break;
       case CMO_ZZ:
           print_cmo_zz((cmo_zz *)c);
           break;
       case CMO_QQ:
           print_cmo_qq((cmo_qq *)c);
           break;
     case CMO_BIGFLOAT:      case CMO_BIGFLOAT:
         print_cmo_bf((cmo_bf *)c);          print_cmo_bf((cmo_bf *)c);
         break;          break;
Line 97  static void print_cmo_string(cmo_string* c)
Line 105  static void print_cmo_string(cmo_string* c)
 static void print_cmo_double(cmo_double* c)  static void print_cmo_double(cmo_double* c)
 {  {
     ox_printf(", %.14f)", c->d);      ox_printf(", %.14f)", c->d);
   }
   
   static void print_cmo_zz(cmo_zz* c)
   {
           char buf[4096];
       gmp_sprintf(buf, ", %Zd)", c->mpz);
       ox_printf("%s", buf);
   }
   
   static void print_cmo_qq(cmo_qq* c)
   {
           char buf[4096];
       gmp_sprintf(buf, ", %Qd)", c->mpq);
       ox_printf("%s", buf);
 }  }
   
 static void print_cmo_bf(cmo_bf* c)  static void print_cmo_bf(cmo_bf* c)

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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