summaryrefslogtreecommitdiffstats
path: root/Python/strtod.c
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2000-07-22 18:47:25 (GMT)
committerThomas Wouters <thomas@python.org>2000-07-22 18:47:25 (GMT)
commitf70ef4f8606f99744252a804229d53a4d97601c1 (patch)
treebe401f2f10b39f0603e4cc0ae091335890410b7f /Python/strtod.c
parent0452d1f316903f0553a0d92e0673ff37247cdfa5 (diff)
downloadcpython-f70ef4f8606f99744252a804229d53a4d97601c1.zip
cpython-f70ef4f8606f99744252a804229d53a4d97601c1.tar.gz
cpython-f70ef4f8606f99744252a804229d53a4d97601c1.tar.bz2
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
declarations yet, those come later.
Diffstat (limited to 'Python/strtod.c')
-rw-r--r--Python/strtod.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/Python/strtod.c b/Python/strtod.c
index 0673fca..c6a1dbd 100644
--- a/Python/strtod.c
+++ b/Python/strtod.c
@@ -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;
- }
+}