Loading...
--- Libc/Libc-1725.40.4/stdlib/FreeBSD/strtoumax.c
+++ Libc/Libc-763.11/stdlib/FreeBSD/strtoumax.c
@@ -33,8 +33,6 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoumax.c,v 1.11 2007/01/09 00:28:10 imp Exp $");
-#include "xlocale_private.h"
-
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
@@ -47,8 +45,7 @@
* alphabets and digits are each contiguous.
*/
uintmax_t
-strtoumax_l(const char * __restrict nptr, char ** __restrict endptr, int base,
- locale_t loc)
+strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base)
{
const char *s;
uintmax_t acc;
@@ -56,14 +53,13 @@
uintmax_t cutoff;
int neg, any, cutlim;
- NORMALIZE_LOCALE(loc);
/*
* See strtoimax for comments as to the logic used.
*/
s = nptr;
do {
c = *s++;
- } while (isspace_l((unsigned char)c, loc));
+ } while (isspace((unsigned char)c));
if (c == '-') {
neg = 1;
c = *s++;
@@ -120,9 +116,3 @@
*endptr = (char *)(any ? s - 1 : nptr);
return (acc);
}
-
-uintmax_t
-strtoumax(const char * __restrict nptr, char ** __restrict endptr, int base)
-{
- return strtoumax_l(nptr, endptr, base, __current_locale());
-}