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 /sub1sp.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 'sub1sp.c')
-rw-r--r-- | sub1sp.c | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -21,20 +21,9 @@ 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. */ -#if defined(DEBUG) || defined(WANT_ASSERT) -# include <stdio.h> -#endif - #define MPFR_NEED_LONGLONG_H #include "mpfr-impl.h" -#ifdef DEBUG -# undef DEBUG -# define DEBUG(x) (x) -#else -# define DEBUG(x) /**/ -#endif - /* Check if we have to check the result of mpfr_sub1sp with mpfr_sub1 */ #ifdef WANT_ASSERT # if WANT_ASSERT >= 2 @@ -77,7 +66,13 @@ int mpfr_sub1sp (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mp_rnd_t rnd_mode) # endif #endif - +/* Debugging support */ +#ifdef DEBUG +# undef DEBUG +# define DEBUG(x) (x) +#else +# define DEBUG(x) /**/ +#endif /* Rounding Sub */ |