[Python-checkins] r71213 - python/branches/py3k-short-float-repr/Python/dtoa.c
mark.dickinson
python-checkins at python.org
Sun Apr 5 12:26:01 CEST 2009
Author: mark.dickinson
Date: Sun Apr 5 12:26:01 2009
New Revision: 71213
Log:
Remove #includes in dtoa.c that are already included by Python.h
Modified:
python/branches/py3k-short-float-repr/Python/dtoa.c
Modified: python/branches/py3k-short-float-repr/Python/dtoa.c
==============================================================================
--- python/branches/py3k-short-float-repr/Python/dtoa.c (original)
+++ python/branches/py3k-short-float-repr/Python/dtoa.c Sun Apr 5 12:26:01 2009
@@ -182,8 +182,7 @@
/* Linking of Python's #defines to Gay's #defines starts here. */
#include "Python.h"
-
-#define NO_HEX_FP
+#include "float.h"
/* use WORDS_BIGENDIAN to determine float endianness. This assumes that ints
and floats share the same endianness on the target machine, which appears
@@ -210,19 +209,17 @@
#define NO_LONG_LONG
#endif
-/* End Python #define linking */
+#undef DEBUG
+#ifdef Py_DEBUG
+#define DEBUG
+#endif
+/* End Python #define linking */
#ifdef DEBUG
-#include "stdio.h"
#define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}
#endif
-#include "stdlib.h"
-#include "string.h"
-
-
-
#ifdef MALLOC
extern void *MALLOC(size_t);
#else
@@ -249,14 +246,6 @@
#undef INFNAN_CHECK
#define INFNAN_CHECK
-#include "errno.h"
-
-#include "float.h"
-
-#ifndef __MATH_H__
-#include "math.h"
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
More information about the Python-checkins
mailing list