mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
This commit is contained in:
parent
0452d1f316
commit
f70ef4f860
45 changed files with 704 additions and 1526 deletions
|
@ -52,17 +52,15 @@ static int MDMAXEXPT = { 309};
|
|||
static char MDMAXFRAC[] = "17976931348623157";
|
||||
static double HUGE = 1.7976931348623157e308;
|
||||
|
||||
extern double atof(); /* Only called when result known to be ok */
|
||||
extern double atof(const char *); /* Only called when result known to be ok */
|
||||
|
||||
#ifndef DONT_HAVE_ERRNO_H
|
||||
#include <errno.h>
|
||||
#endif
|
||||
extern int errno;
|
||||
|
||||
double strtod(str, ptr)
|
||||
char *str;
|
||||
char **ptr;
|
||||
{
|
||||
double strtod(char *str, char **ptr)
|
||||
{
|
||||
int sign, scale, dotseen;
|
||||
int esign, expt;
|
||||
char *save;
|
||||
|
@ -155,4 +153,4 @@ double strtod(str, ptr)
|
|||
(void) sprintf(dp, "E%d", expt);
|
||||
errno = 0;
|
||||
return atof(buffer)*sign;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue