[Python-checkins] CVS: python/dist/src/Python compile.c,2.142,2.143 marshal.c,1.57,1.58

Tim Peters python-dev@python.org
Tue, 14 Nov 2000 12:44:57 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv27853/python/dist/src/Python

Modified Files:
	compile.c marshal.c 
Log Message:
SF bug 119622:  compile errors due to redundant atof decls.  I don't understand
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.


Index: compile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v
retrieving revision 2.142
retrieving revision 2.143
diff -C2 -r2.142 -r2.143
*** compile.c	2000/09/26 05:46:01	2.142
--- compile.c	2000/11/14 20:44:53	2.143
***************
*** 768,772 ****
  parsenumber(struct compiling *co, char *s)
  {
- 	extern double atof(const char *);
  	char *end;
  	long x;
--- 768,771 ----

Index: marshal.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/marshal.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -r1.57 -r1.58
*** marshal.c	2000/09/19 08:54:13	1.57
--- marshal.c	2000/11/14 20:44:53	1.58
***************
*** 404,408 ****
  	case TYPE_FLOAT:
  		{
- 			extern double atof(const char *);
  			char buf[256];
  			double dx;
--- 404,407 ----
***************
*** 423,427 ****
  	case TYPE_COMPLEX:
  		{
- 			extern double atof(const char *);
  			char buf[256];
  			Py_complex c;
--- 422,425 ----