]> git.saurik.com Git - apple/libc.git/blobdiff - stdlib/FreeBSD/strtoll.c.patch
Libc-763.11.tar.gz
[apple/libc.git] / stdlib / FreeBSD / strtoll.c.patch
index 6eb5d1ac9e5a701b3475dffe67ad43abfd50c8da..951063569a28bc69ed16667d3234b6211df19bc1 100644 (file)
@@ -1,15 +1,15 @@
---- strtoll.c.orig     2003-05-20 15:23:25.000000000 -0700
-+++ strtoll.c  2005-02-17 00:46:45.000000000 -0800
-@@ -37,6 +37,8 @@
+--- strtoll.c.bsdnew   2009-11-13 14:11:51.000000000 -0800
++++ strtoll.c  2009-11-13 14:11:51.000000000 -0800
+@@ -33,6 +33,8 @@ static char sccsid[] = "@(#)strtoq.c 8.1
  #include <sys/cdefs.h>
- __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoll.c,v 1.19 2002/09/06 11:23:59 tjr Exp $");
+ __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoll.c,v 1.22 2007/01/09 00:28:10 imp Exp $");
  
 +#include "xlocale_private.h"
 +
  #include <limits.h>
  #include <errno.h>
  #include <ctype.h>
-@@ -49,7 +51,8 @@
+@@ -45,7 +47,8 @@ __FBSDID("$FreeBSD: src/lib/libc/stdlib/
   * alphabets and digits are each contiguous.
   */
  long long
@@ -19,7 +19,7 @@
  {
        const char *s;
        unsigned long long acc;
-@@ -57,6 +60,7 @@
+@@ -53,6 +56,7 @@ strtoll(const char * __restrict nptr, ch
        unsigned long long cutoff;
        int neg, any, cutlim;
  
@@ -27,7 +27,7 @@
        /*
         * Skip white space and pick up leading +/- sign if any.
         * If base is 0, allow 0x for hex and 0 for octal, else
-@@ -65,7 +69,7 @@
+@@ -61,7 +65,7 @@ strtoll(const char * __restrict nptr, ch
        s = nptr;
        do {
                c = *s++;
@@ -36,7 +36,7 @@
        if (c == '-') {
                neg = 1;
                c = *s++;
-@@ -139,3 +143,9 @@
+@@ -138,3 +142,9 @@ noconv:
                *endptr = (char *)(any ? s - 1 : nptr);
        return (acc);
  }