diff Python/mystrtoul.c @ 5440:9eaa2caed1c3 legacy-trunk

Oops, missed some renamings.
author Guido van Rossum <guido@python.org>
date Wed, 07 May 1997 23:51:07 +0000
parents 5af766a1b531
children 51f8d4da81e4
line wrap: on
line diff
--- a/Python/mystrtoul.c	Wed May 07 23:50:40 1997 +0000
+++ b/Python/mystrtoul.c	Wed May 07 23:51:07 1997 +0000
@@ -39,8 +39,6 @@
 #define Py_CHARMASK(c)		((c) & 0xff)
 #endif
 
-#include "rename2.h"
-
 /* strtol and strtoul, renamed to avoid conflicts */
 
 /*
@@ -61,7 +59,7 @@
 #include <errno.h>
 
 unsigned long
-mystrtoul(str, ptr, base)
+PyOS_strtoul(str, ptr, base)
 register char *	str;
 char **		ptr;
 int		base;
@@ -148,7 +146,7 @@
 }
 
 long
-mystrtol(str, ptr, base)
+PyOS_strtol(str, ptr, base)
 char *	str;
 char ** ptr;
 int	base;
@@ -163,7 +161,7 @@
 	if (sign == '+' || sign == '-')
 		str++;
 	
-	result = (long) mystrtoul(str, ptr, base);
+	result = (long) PyOS_strtoul(str, ptr, base);
 	
 	/* Signal overflow if the result appears negative,
 	   except for the largest negative integer */