Ignore:
Timestamp:
Mar 19, 2014, 11:11:30 AM (11 years ago)
Author:
dmik
Message:

python: Update vendor to 2.7.6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/vendor/current/Python/pystrcmp.c

    r2 r388  
    77PyOS_mystrnicmp(const char *s1, const char *s2, Py_ssize_t size)
    88{
    9         if (size == 0)
    10                 return 0;
    11         while ((--size > 0) &&
    12                (tolower((unsigned)*s1) == tolower((unsigned)*s2))) {
    13                 if (!*s1++ || !*s2++)
    14                         break;
    15         }
    16         return tolower((unsigned)*s1) - tolower((unsigned)*s2);
     9    if (size == 0)
     10        return 0;
     11    while ((--size > 0) &&
     12           (tolower((unsigned)*s1) == tolower((unsigned)*s2))) {
     13        if (!*s1++ || !*s2++)
     14            break;
     15    }
     16    return tolower((unsigned)*s1) - tolower((unsigned)*s2);
    1717}
    1818
     
    2020PyOS_mystricmp(const char *s1, const char *s2)
    2121{
    22         while (*s1 && (tolower((unsigned)*s1++) == tolower((unsigned)*s2++))) {
    23                 ;
    24         }
    25         return (tolower((unsigned)*s1) - tolower((unsigned)*s2));
     22    while (*s1 && (tolower((unsigned)*s1++) == tolower((unsigned)*s2++))) {
     23        ;
     24    }
     25    return (tolower((unsigned)*s1) - tolower((unsigned)*s2));
    2626}
Note: See TracChangeset for help on using the changeset viewer.