mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant to
notify exceptions raised by the _PyUnicodeWriter API
This commit is contained in:
parent
85c761d3d3
commit
d1f9942ae3
3 changed files with 5 additions and 2 deletions
|
|
@ -112,6 +112,7 @@ typedef struct {
|
|||
#define MBERR_TOOSMALL (-1) /* insufficient output buffer space */
|
||||
#define MBERR_TOOFEW (-2) /* incomplete input buffer */
|
||||
#define MBERR_INTERNAL (-3) /* internal runtime error */
|
||||
#define MBERR_EXCEPTION (-4) /* an exception has been raised */
|
||||
|
||||
#define ERROR_STRICT (PyObject *)(1)
|
||||
#define ERROR_IGNORE (PyObject *)(2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue