diff options
author | Skip Montanaro <skip@pobox.com> | 2009-10-18 14:25:35 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2009-10-18 14:25:35 (GMT) |
commit | ba1e0f46ab5a83be1a367b0eadb2f783e06228b3 (patch) | |
tree | dd688b778427cfdd6e4786322fd6ede99fd6bfbb /Python/ast.c | |
parent | 6ead552b47ecc4e7d85a03b3b662c6d46e59bec3 (diff) | |
download | cpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.zip cpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.tar.gz cpython-ba1e0f46ab5a83be1a367b0eadb2f783e06228b3.tar.bz2 |
Issue 7147 - remove ability to attempt to build Python without complex number support (was broken anyway)
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Python/ast.c b/Python/ast.c index 8a35a12..c3edea3 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3177,17 +3177,13 @@ parsenumber(struct compiling *c, const char *s) const char *end; long x; double dx; -#ifndef WITHOUT_COMPLEX Py_complex compl; int imflag; -#endif assert(s != NULL); errno = 0; end = s + strlen(s) - 1; -#ifndef WITHOUT_COMPLEX imflag = *end == 'j' || *end == 'J'; -#endif if (s[0] == '0') { x = (long) PyOS_strtoul((char *)s, (char **)&end, 0); if (x < 0 && errno == 0) { @@ -3204,7 +3200,6 @@ parsenumber(struct compiling *c, const char *s) return PyLong_FromLong(x); } /* XXX Huge floats may silently fail */ -#ifndef WITHOUT_COMPLEX if (imflag) { compl.real = 0.; compl.imag = PyOS_string_to_double(s, (char **)&end, NULL); @@ -3213,7 +3208,6 @@ parsenumber(struct compiling *c, const char *s) return PyComplex_FromCComplex(compl); } else -#endif { dx = PyOS_string_to_double(s, NULL, NULL); if (dx == -1.0 && PyErr_Occurred()) |