diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-06-08 09:53:48 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-06-08 09:53:48 +0000 |
commit | 621d7ffd3682b99ba21ba2f796c7cc9680b4b774 (patch) | |
tree | 111de3ed4033d552b4e2f09ed23edcf45bf861f8 /clear.c | |
parent | 5ab31a6cfff0c816f35a8146e0aedcd1e80a78f5 (diff) | |
download | mpfr-621d7ffd3682b99ba21ba2f796c7cc9680b4b774.tar.gz |
Clean up use of stdio.h:
it is now included by mpfr-impl iff DEBUG is defined or WANT_ASSERT is
defined.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3631 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'clear.c')
-rw-r--r-- | clear.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -1,6 +1,6 @@ /* mpfr_clear -- free the memory space allocated for a floating-point number -Copyright 1999, 2000, 2001, 2004 Free Software Foundation. +Copyright 1999, 2000, 2001, 2004, 2005 Free Software Foundation. This file is part of the MPFR Library. @@ -19,16 +19,12 @@ along with the MPFR Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Place, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <stdio.h> - #include "mpfr-impl.h" void mpfr_clear (mpfr_ptr m) { - /* be careful to always free an entire number of limbs */ - (*__gmp_free_func) - (MPFR_GET_REAL_PTR(m), - MPFR_MALLOC_SIZE(MPFR_GET_ALLOC_SIZE(m))); - MPFR_MANT(m) = NULL; + (*__gmp_free_func) (MPFR_GET_REAL_PTR (m), + MPFR_MALLOC_SIZE (MPFR_GET_ALLOC_SIZE (m))); + MPFR_MANT (m) = NULL; } |