]> granicus.if.org Git - python/commitdiff
SF bug 119622: compile errors due to redundant atof decls. I don't understand
authorTim Peters <tim.peters@gmail.com>
Tue, 14 Nov 2000 20:44:53 +0000 (20:44 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 14 Nov 2000 20:44:53 +0000 (20:44 +0000)
the bug report (for details, look at it), but agree there's no need for Python
to declare atof itself:  we #include stdlib.h, and ANSI C sez atof is declared
there already.

Python/compile.c
Python/marshal.c

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);