[BACK]Return to dump.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / gmp / mpf

Diff for /OpenXM_contrib/gmp/mpf/Attic/dump.c between version 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2000/09/09 14:13:10 version 1.1.1.3, 2003/08/25 16:06:35
Line 5 
Line 5 
    FUNCTION WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE.     FUNCTION WILL CHANGE OR DISAPPEAR IN A FUTURE GNU MP RELEASE.
   
   
 Copyright (C) 1993, 1994, 1995, 2000 Free Software Foundation, Inc.  Copyright 1993, 1994, 1995, 2000, 2001 Free Software Foundation, Inc.
   
 This file is part of the GNU MP Library.  This file is part of the GNU MP Library.
   
Line 25  the Free Software Foundation, Inc., 59 Temple Place - 
Line 25  the Free Software Foundation, Inc., 59 Temple Place - 
 MA 02111-1307, USA. */  MA 02111-1307, USA. */
   
 #include <stdio.h>  #include <stdio.h>
   #include <string.h> /* for strlen */
 #include "gmp.h"  #include "gmp.h"
 #include "gmp-impl.h"  #include "gmp-impl.h"
   
 void  void
 #if __STDC__  
 mpf_dump (mpf_srcptr u)  mpf_dump (mpf_srcptr u)
 #else  
 mpf_dump (u)  
      mpf_srcptr u;  
 #endif  
 {  {
   mp_exp_t exp;    mp_exp_t exp;
   char *str;    char *str;
Line 44  mpf_dump (u)
Line 40  mpf_dump (u)
     printf ("-0.%se%ld\n", str + 1, exp);      printf ("-0.%se%ld\n", str + 1, exp);
   else    else
     printf ("0.%se%ld\n", str, exp);      printf ("0.%se%ld\n", str, exp);
   (*_mp_free_func) (str, 0);/* ??? broken alloc interface, pass what size ??? */    (*__gmp_free_func) (str, strlen (str) + 1);
 }  }

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3

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