From 5f4541550405b8bdacf6b726b8f5298f22bf4243 Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Fri, 30 Mar 2001 16:31:50 +0000 Subject: [PATCH] SF bug 119622: compile errors due to redundant atof decls. Fixed in compile.c and marshal.c Quote tim: "Python shouldn't be in the business of defining atof" --- Misc/NEWS | 3 +++ Python/compile.c | 1 - Python/marshal.c | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Misc/NEWS b/Misc/NEWS index 78fe57c94d21..8061231a0bf9 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -28,6 +28,9 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&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? ========================= diff --git a/Python/compile.c b/Python/compile.c index e14fc01df8b0..77ae001c1114 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -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; diff --git a/Python/marshal.c b/Python/marshal.c index f8953ceae4c9..a9b3ed1653de 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -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); -- 2.47.3