diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2013-05-11 07:31:02 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2013-05-11 07:31:02 +0200 |
commit | 96fde4d1551ee7e0ea32c77039769cf2b3a051a7 (patch) | |
tree | 073647bcce35849e6e95deb8f6798a9d61adf534 | |
parent | ffab21823fdb985868be35d2f05e74a55204c583 (diff) | |
download | cython-96fde4d1551ee7e0ea32c77039769cf2b3a051a7.tar.gz |
use new Py3.x signature for PyUnicode_DecodeMBCSStateful() declaration
-rw-r--r-- | Cython/Includes/cpython/unicode.pxd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Includes/cpython/unicode.pxd b/Cython/Includes/cpython/unicode.pxd index 97452c62d..350fdf9a4 100644 --- a/Cython/Includes/cpython/unicode.pxd +++ b/Cython/Includes/cpython/unicode.pxd @@ -377,7 +377,8 @@ cdef extern from *: # consumed is not NULL, PyUnicode_DecodeMBCSStateful() will not # decode trailing lead byte and the number of bytes that have been # decoded will be stored in consumed. New in version 2.5. - object PyUnicode_DecodeMBCSStateful(char *s, int size, char *errors, int *consumed) + # NOTE: Python 2.x uses 'int' values for 'size' and 'consumed' (changed in 3.0) + object PyUnicode_DecodeMBCSStateful(char *s, Py_ssize_t size, char *errors, Py_ssize_t *consumed) # Encode the Py_UNICODE buffer of the given size using MBCS and # return a Python string object. Return NULL if an exception was |