Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Objects/stringlib/stringdefs.h

    r2 r391  
    1212#define STRINGLIB_PARSE_CODE     "S"
    1313#define STRINGLIB_EMPTY          nullstring
     14#define STRINGLIB_ISSPACE        Py_ISSPACE
     15#define STRINGLIB_ISLINEBREAK(x) ((x == '\n') || (x == '\r'))
    1416#define STRINGLIB_ISDECIMAL(x)   ((x >= '0') && (x <= '9'))
    1517#define STRINGLIB_TODECIMAL(x)   (STRINGLIB_ISDECIMAL(x) ? (x - '0') : -1)
    16 #define STRINGLIB_TOUPPER        toupper
    17 #define STRINGLIB_TOLOWER        tolower
     18#define STRINGLIB_TOUPPER        Py_TOUPPER
     19#define STRINGLIB_TOLOWER        Py_TOLOWER
    1820#define STRINGLIB_FILL           memset
    1921#define STRINGLIB_STR            PyString_AS_STRING
     
    2224#define STRINGLIB_RESIZE         _PyString_Resize
    2325#define STRINGLIB_CHECK          PyString_Check
    24 #define STRINGLIB_CMP            memcmp
     26#define STRINGLIB_CHECK_EXACT    PyString_CheckExact
    2527#define STRINGLIB_TOSTR          PyObject_Str
    2628#define STRINGLIB_GROUPING       _PyString_InsertThousandsGrouping
     29#define STRINGLIB_GROUPING_LOCALE _PyString_InsertThousandsGroupingLocale
     30
     31#define STRINGLIB_WANT_CONTAINS_OBJ 1
    2732
    2833#endif /* !STRINGLIB_STRINGDEFS_H */
Note: See TracChangeset for help on using the changeset viewer.