accpect pacth in bug 2314, with one smaller change

the msvcrt20.def change was not accpect, it need more time for review.
and we do not support __set_error in libcntpr.  
the patch are base on current strtoul, the strtoull are the long long version 
of strtoul. so he took current stroul and adpate it to long long. and also add
missing error code. patch are done by Pierre Schweitzer email heis_spiter at hotmail.com

See issue #2314 for more details.

svn path=/trunk/; revision=27344
This commit is contained in:
Magnus Olsen 2007-06-30 14:12:10 +00:00
parent 149ffee96d
commit 3c6d190150
5 changed files with 8 additions and 0 deletions

View file

@ -1065,6 +1065,7 @@ strspn
strstr
strtol
strtoul
strtoull
swprintf
tan
tolower

View file

@ -523,6 +523,7 @@ strtod
strtok
strtol=NTDLL.strtol
strtoul
strtoull
strxfrm
swprintf=crt_swprintf
swscanf

View file

@ -797,6 +797,7 @@ strtod
strtok
strtol=NTDLL.strtol
strtoul
strtoull
strxfrm
swprintf=crt_swprintf
swscanf

View file

@ -137,6 +137,7 @@
<file>splitp.c</file>
<file>strtol.c</file>
<file>strtoul.c</file>
<file>strtoull.c</file>
<file>wcstol.c</file>
<file>wcstombs.c</file>
<file>wcstoul.c</file>

View file

@ -1,7 +1,10 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <limits.h>
#include <ctype.h>
/*
* Convert a string to an unsigned long integer.
*
@ -64,6 +67,7 @@ strtoul(const char *nptr, char **endptr, int base)
if (any < 0)
{
acc = ULONG_MAX;
}
else if (neg)
acc = -acc;