Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
96fde4d1
Commit
96fde4d1
authored
May 11, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new Py3.x signature for PyUnicode_DecodeMBCSStateful() declaration
parent
ffab2182
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Cython/Includes/cpython/unicode.pxd
Cython/Includes/cpython/unicode.pxd
+2
-1
No files found.
Cython/Includes/cpython/unicode.pxd
View file @
96fde4d1
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment