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

Diff for /OpenXM/src/ox_toolkit/ox.c between version 1.33 and 1.34

version 1.33, 2005/03/03 07:25:17 version 1.34, 2007/03/14 10:30:54
Line 1 
Line 1 
 /* -*- mode: C; coding: euc-japan -*- */  /* -*- mode: C; coding: euc-japan -*- */
 /* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.32 2005/03/03 06:38:15 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.33 2005/03/03 07:25:17 ohara Exp $ */
   
 /*  /*
    This module includes functions for sending/receiveng CMO's.     This module includes functions for sending/receiveng CMO's.
Line 210  static cmo_zz* receive_cmo_zz(OXFILE *oxfp)
Line 210  static cmo_zz* receive_cmo_zz(OXFILE *oxfp)
   
 static cmo_qq* receive_cmo_qq(OXFILE *oxfp)  static cmo_qq* receive_cmo_qq(OXFILE *oxfp)
 {  {
     cmo_qq* c = new_cmo_qq_noinit();      mpz_t num, den;
     c->num = receive_cmo(oxfp);      mpz_init(num);
     c->den = receive_cmo(oxfp);      mpz_init(den);
     return c;      receive_mpz(oxfp, num);
       receive_mpz(oxfp, den);
       return new_cmo_qq_set_mpz(num, den);
 }  }
   
 static cmo_zero* receive_cmo_zero(OXFILE *oxfp)  static cmo_zero* receive_cmo_zero(OXFILE *oxfp)
Line 605  static int send_cmo_zz(OXFILE *oxfp, cmo_zz* c)
Line 607  static int send_cmo_zz(OXFILE *oxfp, cmo_zz* c)
   
 static int send_cmo_qq(OXFILE *oxfp, cmo_qq* c)  static int send_cmo_qq(OXFILE *oxfp, cmo_qq* c)
 {  {
     send_cmo(oxfp, c->num);      send_mpz(oxfp, mpq_numref(c->mpq));
     send_cmo(oxfp, c->den);      send_mpz(oxfp, mpq_denref(c->mpq));
     return 0;      return 0;
 }  }
   

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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