]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF bug 119622: compile errors due to redundant atof decls.
authorMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 16:31:50 +0000 (16:31 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Fri, 30 Mar 2001 16:31:50 +0000 (16:31 +0000)
Fixed in compile.c and marshal.c
Quote tim: "Python shouldn't be in the business of defining atof"

Misc/NEWS
Python/compile.c
Python/marshal.c

index 78fe57c94d21da563990e9e712425e964b95a258..8061231a0bf9145d4b651973ec7e58844cfe33fc 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -28,6 +28,9 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&group_id=5470&atid
 
 - #409651 - in Lib/fnmatch.py, make \ in a character group work
 
+- #119622:  compile errors due to redundant atof decls. Removed from
+  Python/compile.c and Python/marshal.c
+
 
 What's New in Python 2.0?
 =========================
index e14fc01df8b04940ab9e10e9a00cbca063dee32a..77ae001c111452065f70c635c0794acb8c5cf8dd 100644 (file)
@@ -767,7 +767,6 @@ com_addopname(struct compiling *c, int op, node *n)
 static PyObject *
 parsenumber(struct compiling *co, char *s)
 {
-       extern double atof(const char *);
        char *end;
        long x;
        double dx;
index f8953ceae4c96df5594e6dcb04c62822991f6774..a9b3ed1653de07a259d1b486b82fba9ea64c1505 100644 (file)
@@ -403,7 +403,6 @@ r_object(RFILE *p)
        
        case TYPE_FLOAT:
                {
-                       extern double atof(const char *);
                        char buf[256];
                        double dx;
                        n = r_byte(p);
@@ -422,7 +421,6 @@ r_object(RFILE *p)
 #ifndef WITHOUT_COMPLEX
        case TYPE_COMPLEX:
                {
-                       extern double atof(const char *);
                        char buf[256];
                        Py_complex c;
                        n = r_byte(p);