[Python-checkins] r71621 - in python/branches/py3k-short-float-repr: Include/dtoa.h Python/dtoa.c
mark.dickinson
python-checkins at python.org
Wed Apr 15 20:16:42 CEST 2009
Author: mark.dickinson
Date: Wed Apr 15 20:16:42 2009
New Revision: 71621
Log:
Don't compile dtoa.c when PY_NO_SHORT_FLOAT_REPR is defined
Modified:
python/branches/py3k-short-float-repr/Include/dtoa.h
python/branches/py3k-short-float-repr/Python/dtoa.c
Modified: python/branches/py3k-short-float-repr/Include/dtoa.h
==============================================================================
--- python/branches/py3k-short-float-repr/Include/dtoa.h (original)
+++ python/branches/py3k-short-float-repr/Include/dtoa.h Wed Apr 15 20:16:42 2009
@@ -1,3 +1,4 @@
+#ifndef PY_SHORT_FLOAT_REPR
#ifdef __cplusplus
extern "C" {
#endif
@@ -11,3 +12,4 @@
#ifdef __cplusplus
}
#endif
+#endif
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 Wed Apr 15 20:16:42 2009
@@ -104,6 +104,11 @@
/* Linking of Python's #defines to Gay's #defines starts here. */
#include "Python.h"
+
+/* if PY_NO_SHORT_FLOAT_REPR is defined, then don't even try to compile
+ the following code */
+#ifndef PY_NO_SHORT_FLOAT_REPR
+
#include "float.h"
#define MALLOC PyMem_Malloc
@@ -2637,3 +2642,5 @@
#ifdef __cplusplus
}
#endif
+
+#endif /* PY_NO_SHORT_FLOAT_REPR */
More information about the Python-checkins
mailing list