"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/Recode.c" between
recode-3.7.11.tar.gz and recode-3.7.12.tar.gz

About: recode is a charset converter tool and library (fork of the original and now unmaintained GNU recode).

Recode.c  (recode-3.7.11):Recode.c  (recode-3.7.12)
skipping to change at line 815 skipping to change at line 815
static const char *__pyx_f[] = { static const char *__pyx_f[] = {
"stringsource", "stringsource",
"Recode.pyx", "Recode.pyx",
}; };
/*--- Type declarations ---*/ /*--- Type declarations ---*/
struct __pyx_obj_6Recode_Outer; struct __pyx_obj_6Recode_Outer;
struct __pyx_obj_6Recode_Request; struct __pyx_obj_6Recode_Request;
struct __pyx_obj_6Recode_Task; struct __pyx_obj_6Recode_Task;
/* "Recode.pyx":520 /* "Recode.pyx":522
* ## Recode library at OUTER level. * ## Recode library at OUTER level.
* *
* cdef class Outer: # <<<<<<<<<<<<<< * cdef class Outer: # <<<<<<<<<<<<<<
* cdef RECODE_OUTER outer * cdef RECODE_OUTER outer
* *
*/ */
struct __pyx_obj_6Recode_Outer { struct __pyx_obj_6Recode_Outer {
PyObject_HEAD PyObject_HEAD
RECODE_OUTER outer; RECODE_OUTER outer;
}; };
/* "Recode.pyx":585 /* "Recode.pyx":589
* # Recode library at REQUEST level. * # Recode library at REQUEST level.
* *
* cdef class Request: # <<<<<<<<<<<<<< * cdef class Request: # <<<<<<<<<<<<<<
* cdef RECODE_REQUEST request * cdef RECODE_REQUEST request
* *
*/ */
struct __pyx_obj_6Recode_Request { struct __pyx_obj_6Recode_Request {
PyObject_HEAD PyObject_HEAD
RECODE_REQUEST request; RECODE_REQUEST request;
}; };
/* "Recode.pyx":664 /* "Recode.pyx":668
* # Recode library at TASK level. * # Recode library at TASK level.
* *
* cdef class Task: # <<<<<<<<<<<<<< * cdef class Task: # <<<<<<<<<<<<<<
* cdef RECODE_TASK task * cdef RECODE_TASK task
* *
*/ */
struct __pyx_obj_6Recode_Task { struct __pyx_obj_6Recode_Task {
PyObject_HEAD PyObject_HEAD
RECODE_TASK task; RECODE_TASK task;
}; };
skipping to change at line 1342 skipping to change at line 1342
static const char __pyx_k_UNTRANSLATABLE[] = "UNTRANSLATABLE"; static const char __pyx_k_UNTRANSLATABLE[] = "UNTRANSLATABLE";
static const char __pyx_k_AUTO_ABORT_FLAG[] = "AUTO_ABORT_FLAG"; static const char __pyx_k_AUTO_ABORT_FLAG[] = "AUTO_ABORT_FLAG";
static const char __pyx_k_BYTE_ORDER_MARK[] = "BYTE_ORDER_MARK"; static const char __pyx_k_BYTE_ORDER_MARK[] = "BYTE_ORDER_MARK";
static const char __pyx_k_COMBINE_EXPLODE[] = "COMBINE_EXPLODE"; static const char __pyx_k_COMBINE_EXPLODE[] = "COMBINE_EXPLODE";
static const char __pyx_k_NOT_A_CHARACTER[] = "NOT_A_CHARACTER"; static const char __pyx_k_NOT_A_CHARACTER[] = "NOT_A_CHARACTER";
static const char __pyx_k_NO_CHARSET_DATA[] = "NO_CHARSET_DATA"; static const char __pyx_k_NO_CHARSET_DATA[] = "NO_CHARSET_DATA";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__"; static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_AMBIGUOUS_OUTPUT[] = "AMBIGUOUS_OUTPUT"; static const char __pyx_k_AMBIGUOUS_OUTPUT[] = "AMBIGUOUS_OUTPUT";
static const char __pyx_k_HEXADECIMAL_FORMAT[] = "HEXADECIMAL_FORMAT"; static const char __pyx_k_HEXADECIMAL_FORMAT[] = "HEXADECIMAL_FORMAT";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback"; static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_STRICT_MAPPING_FLAG[] = "STRICT_MAPPING_FLAG";
static const char __pyx_k_ALIAS_FIND_AS_EITHER[] = "ALIAS_FIND_AS_EITHER"; static const char __pyx_k_ALIAS_FIND_AS_EITHER[] = "ALIAS_FIND_AS_EITHER";
static const char __pyx_k_ALIAS_FIND_AS_CHARSET[] = "ALIAS_FIND_AS_CHARSET"; static const char __pyx_k_ALIAS_FIND_AS_CHARSET[] = "ALIAS_FIND_AS_CHARSET";
static const char __pyx_k_ALIAS_FIND_AS_SURFACE[] = "ALIAS_FIND_AS_SURFACE"; static const char __pyx_k_ALIAS_FIND_AS_SURFACE[] = "ALIAS_FIND_AS_SURFACE";
static const char __pyx_k_REPLACEMENT_CHARACTER[] = "REPLACEMENT_CHARACTER"; static const char __pyx_k_REPLACEMENT_CHARACTER[] = "REPLACEMENT_CHARACTER";
static const char __pyx_k_SYMBOL_CREATE_CHARSET[] = "SYMBOL_CREATE_CHARSET"; static const char __pyx_k_SYMBOL_CREATE_CHARSET[] = "SYMBOL_CREATE_CHARSET";
static const char __pyx_k_BYTE_ORDER_MARK_SWAPPED[] = "BYTE_ORDER_MARK_SWAPPED"; static const char __pyx_k_BYTE_ORDER_MARK_SWAPPED[] = "BYTE_ORDER_MARK_SWAPPED";
static const char __pyx_k_SYMBOL_CREATE_DATA_SURFACE[] = "SYMBOL_CREATE_DATA_SUR FACE"; static const char __pyx_k_SYMBOL_CREATE_DATA_SURFACE[] = "SYMBOL_CREATE_DATA_SUR FACE";
static const char __pyx_k_self_outer_cannot_be_converted_t[] = "self.outer canno t be converted to a Python object for pickling"; static const char __pyx_k_self_outer_cannot_be_converted_t[] = "self.outer canno t be converted to a Python object for pickling";
static const char __pyx_k_self_request_cannot_be_converted[] = "self.request can not be converted to a Python object for pickling"; static const char __pyx_k_self_request_cannot_be_converted[] = "self.request can not be converted to a Python object for pickling";
static const char __pyx_k_self_task_cannot_be_converted_to[] = "self.task cannot be converted to a Python object for pickling"; static const char __pyx_k_self_task_cannot_be_converted_to[] = "self.task cannot be converted to a Python object for pickling";
skipping to change at line 1394 skipping to change at line 1395
static PyObject *__pyx_n_s_NUL; static PyObject *__pyx_n_s_NUL;
static PyObject *__pyx_n_s_OCTAL_FORMAT; static PyObject *__pyx_n_s_OCTAL_FORMAT;
static PyObject *__pyx_n_s_Outer; static PyObject *__pyx_n_s_Outer;
static PyObject *__pyx_n_s_REPLACEMENT_CHARACTER; static PyObject *__pyx_n_s_REPLACEMENT_CHARACTER;
static PyObject *__pyx_n_s_Recode; static PyObject *__pyx_n_s_Recode;
static PyObject *__pyx_n_s_Request; static PyObject *__pyx_n_s_Request;
static PyObject *__pyx_n_s_SIZE_1; static PyObject *__pyx_n_s_SIZE_1;
static PyObject *__pyx_n_s_SIZE_2; static PyObject *__pyx_n_s_SIZE_2;
static PyObject *__pyx_n_s_SIZE_4; static PyObject *__pyx_n_s_SIZE_4;
static PyObject *__pyx_n_s_SIZE_N; static PyObject *__pyx_n_s_SIZE_N;
static PyObject *__pyx_n_s_STRICT_MAPPING_FLAG;
static PyObject *__pyx_n_s_STRING_TO_UCS2; static PyObject *__pyx_n_s_STRING_TO_UCS2;
static PyObject *__pyx_n_s_STRIP_DATA; static PyObject *__pyx_n_s_STRIP_DATA;
static PyObject *__pyx_n_s_STRIP_SIZE; static PyObject *__pyx_n_s_STRIP_SIZE;
static PyObject *__pyx_n_s_SWAP_NO; static PyObject *__pyx_n_s_SWAP_NO;
static PyObject *__pyx_n_s_SWAP_UNDECIDED; static PyObject *__pyx_n_s_SWAP_UNDECIDED;
static PyObject *__pyx_n_s_SWAP_YES; static PyObject *__pyx_n_s_SWAP_YES;
static PyObject *__pyx_n_s_SYMBOL_CREATE_CHARSET; static PyObject *__pyx_n_s_SYMBOL_CREATE_CHARSET;
static PyObject *__pyx_n_s_SYMBOL_CREATE_DATA_SURFACE; static PyObject *__pyx_n_s_SYMBOL_CREATE_DATA_SURFACE;
static PyObject *__pyx_n_s_SYSTEM_ERROR; static PyObject *__pyx_n_s_SYSTEM_ERROR;
static PyObject *__pyx_n_s_Task; static PyObject *__pyx_n_s_Task;
skipping to change at line 1486 skipping to change at line 1488
static PyObject *__pyx_tp_new_6Recode_Task(PyTypeObject *t, PyObject *a, PyObjec t *k); /*proto*/ static PyObject *__pyx_tp_new_6Recode_Task(PyTypeObject *t, PyObject *a, PyObjec t *k); /*proto*/
static PyObject *__pyx_k_; static PyObject *__pyx_k_;
static PyObject *__pyx_tuple__2; static PyObject *__pyx_tuple__2;
static PyObject *__pyx_tuple__3; static PyObject *__pyx_tuple__3;
static PyObject *__pyx_tuple__4; static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5; static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6; static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__7; static PyObject *__pyx_tuple__7;
/* Late includes */ /* Late includes */
/* "Recode.pyx":523 /* "Recode.pyx":525
* cdef RECODE_OUTER outer * cdef RECODE_OUTER outer
* *
* def __init__(self, auto_abort=False, iconv=False, strict=False): # <<<<<<<<<<<<<< * def __init__(self, auto_abort=False, iconv=False, strict=False): # <<<<<<<<<<<<<<
* cdef int flags * cdef int flags
* cdef RECODE_SINGLE single * cdef RECODE_SINGLE single
*/ */
/* Python wrapper */ /* Python wrapper */
static int __pyx_pw_6Recode_5Outer_1__init__(PyObject *__pyx_v_self, PyObject *_ _pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_6Recode_5Outer_1__init__(PyObject *__pyx_v_self, PyObject *_ _pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6Recode_5Outer_1__init__(PyObject *__pyx_v_self, PyObject *_ _pyx_args, PyObject *__pyx_kwds) { static int __pyx_pw_6Recode_5Outer_1__init__(PyObject *__pyx_v_self, PyObject *_ _pyx_args, PyObject *__pyx_kwds) {
skipping to change at line 1543 skipping to change at line 1545
if (value) { values[1] = value; kw_args--; } if (value) { values[1] = value; kw_args--; }
} }
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 2: case 2:
if (kw_args > 0) { if (kw_args > 0) {
PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strict ); PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_strict );
if (value) { values[2] = value; kw_args--; } if (value) { values[2] = value; kw_args--; }
} }
} }
if (unlikely(kw_args > 0)) { if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "__init__") < 0)) __PYX_ERR(1, 523, __pyx_L3_error) if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "__init__") < 0)) __PYX_ERR(1, 525, __pyx_L3_error)
} }
} else { } else {
switch (PyTuple_GET_SIZE(__pyx_args)) { switch (PyTuple_GET_SIZE(__pyx_args)) {
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 0: break; case 0: break;
default: goto __pyx_L5_argtuple_error; default: goto __pyx_L5_argtuple_error;
} }
} }
__pyx_v_auto_abort = values[0]; __pyx_v_auto_abort = values[0];
__pyx_v_iconv = values[1]; __pyx_v_iconv = values[1];
__pyx_v_strict = values[2]; __pyx_v_strict = values[2];
} }
goto __pyx_L4_argument_unpacking_done; goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:; __pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 523, __pyx_L3_error) __Pyx_RaiseArgtupleInvalid("__init__", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 525, __pyx_L3_error)
__pyx_L3_error:; __pyx_L3_error:;
__Pyx_AddTraceback("Recode.Outer.__init__", __pyx_clineno, __pyx_lineno, __pyx _filename); __Pyx_AddTraceback("Recode.Outer.__init__", __pyx_clineno, __pyx_lineno, __pyx _filename);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return -1; return -1;
__pyx_L4_argument_unpacking_done:; __pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_6Recode_5Outer___init__(((struct __pyx_obj_6Recode_Outer *) __pyx_v_self), __pyx_v_auto_abort, __pyx_v_iconv, __pyx_v_strict); __pyx_r = __pyx_pf_6Recode_5Outer___init__(((struct __pyx_obj_6Recode_Outer *) __pyx_v_self), __pyx_v_auto_abort, __pyx_v_iconv, __pyx_v_strict);
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
skipping to change at line 1586 skipping to change at line 1588
static int __pyx_pf_6Recode_5Outer___init__(struct __pyx_obj_6Recode_Outer *__py x_v_self, PyObject *__pyx_v_auto_abort, PyObject *__pyx_v_iconv, PyObject *__pyx _v_strict) { static int __pyx_pf_6Recode_5Outer___init__(struct __pyx_obj_6Recode_Outer *__py x_v_self, PyObject *__pyx_v_auto_abort, PyObject *__pyx_v_iconv, PyObject *__pyx _v_strict) {
int __pyx_v_flags; int __pyx_v_flags;
RECODE_SINGLE __pyx_v_single; RECODE_SINGLE __pyx_v_single;
int __pyx_r; int __pyx_r;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
int __pyx_t_1; int __pyx_t_1;
int __pyx_t_2; int __pyx_t_2;
struct recode_single *__pyx_t_3; struct recode_single *__pyx_t_3;
__Pyx_RefNannySetupContext("__init__", 0); __Pyx_RefNannySetupContext("__init__", 0);
/* "Recode.pyx":526 /* "Recode.pyx":528
* cdef int flags * cdef int flags
* cdef RECODE_SINGLE single * cdef RECODE_SINGLE single
* flags = 0 # <<<<<<<<<<<<<< * flags = 0 # <<<<<<<<<<<<<<
* if auto_abort: * if auto_abort:
* flags = flags | RECODE_AUTO_ABORT_FLAG * flags = flags | RECODE_AUTO_ABORT_FLAG
*/ */
__pyx_v_flags = 0; __pyx_v_flags = 0;
/* "Recode.pyx":527 /* "Recode.pyx":529
* cdef RECODE_SINGLE single * cdef RECODE_SINGLE single
* flags = 0 * flags = 0
* if auto_abort: # <<<<<<<<<<<<<< * if auto_abort: # <<<<<<<<<<<<<<
* flags = flags | RECODE_AUTO_ABORT_FLAG * flags = flags | RECODE_AUTO_ABORT_FLAG
* if not iconv: * if not iconv:
*/ */
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_auto_abort); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 527, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_auto_abort); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 529, __pyx_L1_error)
if (__pyx_t_1) { if (__pyx_t_1) {
/* "Recode.pyx":528 /* "Recode.pyx":530
* flags = 0 * flags = 0
* if auto_abort: * if auto_abort:
* flags = flags | RECODE_AUTO_ABORT_FLAG # <<<<<<<<<<<< << * flags = flags | RECODE_AUTO_ABORT_FLAG # <<<<<<<<<<<< <<
* if not iconv: * if not iconv:
* flags = flags | RECODE_NO_ICONV_FLAG * flags = flags | RECODE_NO_ICONV_FLAG
*/ */
__pyx_v_flags = (__pyx_v_flags | RECODE_AUTO_ABORT_FLAG); __pyx_v_flags = (__pyx_v_flags | RECODE_AUTO_ABORT_FLAG);
/* "Recode.pyx":527 /* "Recode.pyx":529
* cdef RECODE_SINGLE single * cdef RECODE_SINGLE single
* flags = 0 * flags = 0
* if auto_abort: # <<<<<<<<<<<<<< * if auto_abort: # <<<<<<<<<<<<<<
* flags = flags | RECODE_AUTO_ABORT_FLAG * flags = flags | RECODE_AUTO_ABORT_FLAG
* if not iconv: * if not iconv:
*/ */
} }
/* "Recode.pyx":529 /* "Recode.pyx":531
* if auto_abort: * if auto_abort:
* flags = flags | RECODE_AUTO_ABORT_FLAG * flags = flags | RECODE_AUTO_ABORT_FLAG
* if not iconv: # <<<<<<<<<<<<<< * if not iconv: # <<<<<<<<<<<<<<
* flags = flags | RECODE_NO_ICONV_FLAG * flags = flags | RECODE_NO_ICONV_FLAG
* self.outer = recode_new_outer(flags) * if strict:
*/ */
__pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_iconv); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 529, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_iconv); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 531, __pyx_L1_error)
__pyx_t_2 = ((!__pyx_t_1) != 0); __pyx_t_2 = ((!__pyx_t_1) != 0);
if (__pyx_t_2) { if (__pyx_t_2) {
/* "Recode.pyx":530 /* "Recode.pyx":532
* flags = flags | RECODE_AUTO_ABORT_FLAG * flags = flags | RECODE_AUTO_ABORT_FLAG
* if not iconv: * if not iconv:
* flags = flags | RECODE_NO_ICONV_FLAG # <<<<<<<<<<<<<< * flags = flags | RECODE_NO_ICONV_FLAG # <<<<<<<<<<<<<<
* self.outer = recode_new_outer(flags)
* if strict: * if strict:
* flags = flags | RECODE_STRICT_MAPPING_FLAG
*/ */
__pyx_v_flags = (__pyx_v_flags | RECODE_NO_ICONV_FLAG); __pyx_v_flags = (__pyx_v_flags | RECODE_NO_ICONV_FLAG);
/* "Recode.pyx":529 /* "Recode.pyx":531
* if auto_abort: * if auto_abort:
* flags = flags | RECODE_AUTO_ABORT_FLAG * flags = flags | RECODE_AUTO_ABORT_FLAG
* if not iconv: # <<<<<<<<<<<<<< * if not iconv: # <<<<<<<<<<<<<<
* flags = flags | RECODE_NO_ICONV_FLAG * flags = flags | RECODE_NO_ICONV_FLAG
* self.outer = recode_new_outer(flags) * if strict:
*/ */
} }
/* "Recode.pyx":531 /* "Recode.pyx":533
* if not iconv:
* flags = flags | RECODE_NO_ICONV_FLAG
* if strict: # <<<<<<<<<<<<<<
* flags = flags | RECODE_STRICT_MAPPING_FLAG
* self.outer = recode_new_outer(flags)
*/
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_strict); if (unlikely(__pyx_t_2 < 0)
) __PYX_ERR(1, 533, __pyx_L1_error)
if (__pyx_t_2) {
/* "Recode.pyx":534
* flags = flags | RECODE_NO_ICONV_FLAG
* if strict:
* flags = flags | RECODE_STRICT_MAPPING_FLAG # <<<<<<<<
<<<<<<
* self.outer = recode_new_outer(flags)
* if strict:
*/
__pyx_v_flags = (__pyx_v_flags | RECODE_STRICT_MAPPING_FLAG);
/* "Recode.pyx":533
* if not iconv: * if not iconv:
* flags = flags | RECODE_NO_ICONV_FLAG * flags = flags | RECODE_NO_ICONV_FLAG
* if strict: # <<<<<<<<<<<<<<
* flags = flags | RECODE_STRICT_MAPPING_FLAG
* self.outer = recode_new_outer(flags)
*/
}
/* "Recode.pyx":535
* if strict:
* flags = flags | RECODE_STRICT_MAPPING_FLAG
* self.outer = recode_new_outer(flags) # <<<<<<<<<<<<<< * self.outer = recode_new_outer(flags) # <<<<<<<<<<<<<<
* if strict: * if strict:
* single = self.outer.single_list * single = self.outer.single_list
*/ */
__pyx_v_self->outer = recode_new_outer(__pyx_v_flags); __pyx_v_self->outer = recode_new_outer(__pyx_v_flags);
/* "Recode.pyx":532 /* "Recode.pyx":536
* flags = flags | RECODE_NO_ICONV_FLAG * flags = flags | RECODE_STRICT_MAPPING_FLAG
* self.outer = recode_new_outer(flags) * self.outer = recode_new_outer(flags)
* if strict: # <<<<<<<<<<<<<< * if strict: # <<<<<<<<<<<<<<
* single = self.outer.single_list * single = self.outer.single_list
* while single is not NULL: * while single is not NULL:
*/ */
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_strict); if (unlikely(__pyx_t_2 < 0) ) __PYX_ERR(1, 532, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_strict); if (unlikely(__pyx_t_2 < 0) ) __PYX_ERR(1, 536, __pyx_L1_error)
if (__pyx_t_2) { if (__pyx_t_2) {
/* "Recode.pyx":533 /* "Recode.pyx":537
* self.outer = recode_new_outer(flags) * self.outer = recode_new_outer(flags)
* if strict: * if strict:
* single = self.outer.single_list # <<<<<<<<<<<<<< * single = self.outer.single_list # <<<<<<<<<<<<<<
* while single is not NULL: * while single is not NULL:
* single.fallback_routine = NULL * single.fallback_routine = NULL
*/ */
__pyx_t_3 = __pyx_v_self->outer->single_list; __pyx_t_3 = __pyx_v_self->outer->single_list;
__pyx_v_single = __pyx_t_3; __pyx_v_single = __pyx_t_3;
/* "Recode.pyx":534 /* "Recode.pyx":538
* if strict: * if strict:
* single = self.outer.single_list * single = self.outer.single_list
* while single is not NULL: # <<<<<<<<<<<<<< * while single is not NULL: # <<<<<<<<<<<<<<
* single.fallback_routine = NULL * single.fallback_routine = NULL
* single = single.next * single = single.next
*/ */
while (1) { while (1) {
__pyx_t_2 = ((__pyx_v_single != NULL) != 0); __pyx_t_2 = ((__pyx_v_single != NULL) != 0);
if (!__pyx_t_2) break; if (!__pyx_t_2) break;
/* "Recode.pyx":535 /* "Recode.pyx":539
* single = self.outer.single_list * single = self.outer.single_list
* while single is not NULL: * while single is not NULL:
* single.fallback_routine = NULL # <<<<<<<<<<<<<< * single.fallback_routine = NULL # <<<<<<<<<<<<<<
* single = single.next * single = single.next
* *
*/ */
__pyx_v_single->fallback_routine = NULL; __pyx_v_single->fallback_routine = NULL;
/* "Recode.pyx":536 /* "Recode.pyx":540
* while single is not NULL: * while single is not NULL:
* single.fallback_routine = NULL * single.fallback_routine = NULL
* single = single.next # <<<<<<<<<<<<<< * single = single.next # <<<<<<<<<<<<<<
* *
* def __dealloc__(self): * def __dealloc__(self):
*/ */
__pyx_t_3 = __pyx_v_single->next; __pyx_t_3 = __pyx_v_single->next;
__pyx_v_single = __pyx_t_3; __pyx_v_single = __pyx_t_3;
} }
/* "Recode.pyx":532 /* "Recode.pyx":536
* flags = flags | RECODE_NO_ICONV_FLAG * flags = flags | RECODE_STRICT_MAPPING_FLAG
* self.outer = recode_new_outer(flags) * self.outer = recode_new_outer(flags)
* if strict: # <<<<<<<<<<<<<< * if strict: # <<<<<<<<<<<<<<
* single = self.outer.single_list * single = self.outer.single_list
* while single is not NULL: * while single is not NULL:
*/ */
} }
/* "Recode.pyx":523 /* "Recode.pyx":525
* cdef RECODE_OUTER outer * cdef RECODE_OUTER outer
* *
* def __init__(self, auto_abort=False, iconv=False, strict=False): # <<<<<<<<<<<<<< * def __init__(self, auto_abort=False, iconv=False, strict=False): # <<<<<<<<<<<<<<
* cdef int flags * cdef int flags
* cdef RECODE_SINGLE single * cdef RECODE_SINGLE single
*/ */
/* function exit code */ /* function exit code */
__pyx_r = 0; __pyx_r = 0;
goto __pyx_L0; goto __pyx_L0;
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_AddTraceback("Recode.Outer.__init__", __pyx_clineno, __pyx_lineno, __pyx _filename); __Pyx_AddTraceback("Recode.Outer.__init__", __pyx_clineno, __pyx_lineno, __pyx _filename);
__pyx_r = -1; __pyx_r = -1;
__pyx_L0:; __pyx_L0:;
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":538 /* "Recode.pyx":542
* single = single.next * single = single.next
* *
* def __dealloc__(self): # <<<<<<<<<<<<<< * def __dealloc__(self): # <<<<<<<<<<<<<<
* recode_delete_outer(self.outer) * recode_delete_outer(self.outer)
* *
*/ */
/* Python wrapper */ /* Python wrapper */
static void __pyx_pw_6Recode_5Outer_3__dealloc__(PyObject *__pyx_v_self); /*prot o*/ static void __pyx_pw_6Recode_5Outer_3__dealloc__(PyObject *__pyx_v_self); /*prot o*/
static void __pyx_pw_6Recode_5Outer_3__dealloc__(PyObject *__pyx_v_self) { static void __pyx_pw_6Recode_5Outer_3__dealloc__(PyObject *__pyx_v_self) {
skipping to change at line 1763 skipping to change at line 1793
__pyx_pf_6Recode_5Outer_2__dealloc__(((struct __pyx_obj_6Recode_Outer *)__pyx_ v_self)); __pyx_pf_6Recode_5Outer_2__dealloc__(((struct __pyx_obj_6Recode_Outer *)__pyx_ v_self));
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
} }
static void __pyx_pf_6Recode_5Outer_2__dealloc__(struct __pyx_obj_6Recode_Outer *__pyx_v_self) { static void __pyx_pf_6Recode_5Outer_2__dealloc__(struct __pyx_obj_6Recode_Outer *__pyx_v_self) {
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__dealloc__", 0); __Pyx_RefNannySetupContext("__dealloc__", 0);
/* "Recode.pyx":539 /* "Recode.pyx":543
* *
* def __dealloc__(self): * def __dealloc__(self):
* recode_delete_outer(self.outer) # <<<<<<<<<<<<<< * recode_delete_outer(self.outer) # <<<<<<<<<<<<<<
* *
* def default_charset(self): * def default_charset(self):
*/ */
(void)(recode_delete_outer(__pyx_v_self->outer)); (void)(recode_delete_outer(__pyx_v_self->outer));
/* "Recode.pyx":538 /* "Recode.pyx":542
* single = single.next * single = single.next
* *
* def __dealloc__(self): # <<<<<<<<<<<<<< * def __dealloc__(self): # <<<<<<<<<<<<<<
* recode_delete_outer(self.outer) * recode_delete_outer(self.outer)
* *
*/ */
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
} }
/* "Recode.pyx":541 /* "Recode.pyx":545
* recode_delete_outer(self.outer) * recode_delete_outer(self.outer)
* *
* def default_charset(self): # <<<<<<<<<<<<<< * def default_charset(self): # <<<<<<<<<<<<<<
* return locale_charset() * return locale_charset()
* *
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_5Outer_5default_charset(PyObject *__pyx_v_self , CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_6Recode_5Outer_5default_charset(PyObject *__pyx_v_self , CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_6Recode_5Outer_5default_charset(PyObject *__pyx_v_self , CYTHON_UNUSED PyObject *unused) { static PyObject *__pyx_pw_6Recode_5Outer_5default_charset(PyObject *__pyx_v_self , CYTHON_UNUSED PyObject *unused) {
skipping to change at line 1811 skipping to change at line 1841
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
static PyObject *__pyx_pf_6Recode_5Outer_4default_charset(CYTHON_UNUSED struct _ _pyx_obj_6Recode_Outer *__pyx_v_self) { static PyObject *__pyx_pf_6Recode_5Outer_4default_charset(CYTHON_UNUSED struct _ _pyx_obj_6Recode_Outer *__pyx_v_self) {
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("default_charset", 0); __Pyx_RefNannySetupContext("default_charset", 0);
/* "Recode.pyx":542 /* "Recode.pyx":546
* *
* def default_charset(self): * def default_charset(self):
* return locale_charset() # <<<<<<<<<<<<<< * return locale_charset() # <<<<<<<<<<<<<<
* *
* def all_charsets(self): * def all_charsets(self):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyBytes_FromString(locale_charset()); if (unlikely(!__pyx_t_ 1)) __PYX_ERR(1, 542, __pyx_L1_error) __pyx_t_1 = __Pyx_PyBytes_FromString(locale_charset()); if (unlikely(!__pyx_t_ 1)) __PYX_ERR(1, 546, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1; __pyx_r = __pyx_t_1;
__pyx_t_1 = 0; __pyx_t_1 = 0;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":541 /* "Recode.pyx":545
* recode_delete_outer(self.outer) * recode_delete_outer(self.outer)
* *
* def default_charset(self): # <<<<<<<<<<<<<< * def default_charset(self): # <<<<<<<<<<<<<<
* return locale_charset() * return locale_charset()
* *
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Outer.default_charset", __pyx_clineno, __pyx_lineno , __pyx_filename); __Pyx_AddTraceback("Recode.Outer.default_charset", __pyx_clineno, __pyx_lineno , __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":544 /* "Recode.pyx":548
* return locale_charset() * return locale_charset()
* *
* def all_charsets(self): # <<<<<<<<<<<<<< * def all_charsets(self): # <<<<<<<<<<<<<<
* list = [] * list = []
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_5Outer_7all_charsets(PyObject *__pyx_v_self, C YTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_6Recode_5Outer_7all_charsets(PyObject *__pyx_v_self, C YTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_6Recode_5Outer_7all_charsets(PyObject *__pyx_v_self, C YTHON_UNUSED PyObject *unused) { static PyObject *__pyx_pw_6Recode_5Outer_7all_charsets(PyObject *__pyx_v_self, C YTHON_UNUSED PyObject *unused) {
skipping to change at line 1878 skipping to change at line 1908
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
RECODE_SYMBOL __pyx_t_2; RECODE_SYMBOL __pyx_t_2;
int __pyx_t_3; int __pyx_t_3;
int __pyx_t_4; int __pyx_t_4;
int __pyx_t_5; int __pyx_t_5;
struct recode_symbol *__pyx_t_6; struct recode_symbol *__pyx_t_6;
__Pyx_RefNannySetupContext("all_charsets", 0); __Pyx_RefNannySetupContext("all_charsets", 0);
/* "Recode.pyx":545 /* "Recode.pyx":549
* *
* def all_charsets(self): * def all_charsets(self):
* list = [] # <<<<<<<<<<<<<< * list = [] # <<<<<<<<<<<<<<
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
*/ */
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 545, __pyx_L 1_error) __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 549, __pyx_L 1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_v_list = ((PyObject*)__pyx_t_1); __pyx_v_list = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0; __pyx_t_1 = 0;
/* "Recode.pyx":547 /* "Recode.pyx":551
* list = [] * list = []
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
* symbol = self.outer.symbol_list # <<<<<<<<<<<<<< * symbol = self.outer.symbol_list # <<<<<<<<<<<<<<
* while symbol is not NULL: * while symbol is not NULL:
* if (symbol.type == RECODE_CHARSET * if (symbol.type == RECODE_CHARSET
*/ */
__pyx_t_2 = __pyx_v_self->outer->symbol_list; __pyx_t_2 = __pyx_v_self->outer->symbol_list;
__pyx_v_symbol = __pyx_t_2; __pyx_v_symbol = __pyx_t_2;
/* "Recode.pyx":548 /* "Recode.pyx":552
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
* while symbol is not NULL: # <<<<<<<<<<<<<< * while symbol is not NULL: # <<<<<<<<<<<<<<
* if (symbol.type == RECODE_CHARSET * if (symbol.type == RECODE_CHARSET
* and symbol is not self.outer.iconv_pivot * and symbol is not self.outer.iconv_pivot
*/ */
while (1) { while (1) {
__pyx_t_3 = ((__pyx_v_symbol != NULL) != 0); __pyx_t_3 = ((__pyx_v_symbol != NULL) != 0);
if (!__pyx_t_3) break; if (!__pyx_t_3) break;
/* "Recode.pyx":549 /* "Recode.pyx":553
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
* while symbol is not NULL: * while symbol is not NULL:
* if (symbol.type == RECODE_CHARSET # <<<<<<<<<<<<<< * if (symbol.type == RECODE_CHARSET # <<<<<<<<<<<<<<
* and symbol is not self.outer.iconv_pivot * and symbol is not self.outer.iconv_pivot
* and symbol is not self.outer.data_symbol): * and symbol is not self.outer.data_symbol):
*/ */
__pyx_t_4 = ((__pyx_v_symbol->type == RECODE_CHARSET) != 0); __pyx_t_4 = ((__pyx_v_symbol->type == RECODE_CHARSET) != 0);
if (__pyx_t_4) { if (__pyx_t_4) {
} else { } else {
__pyx_t_3 = __pyx_t_4; __pyx_t_3 = __pyx_t_4;
goto __pyx_L6_bool_binop_done; goto __pyx_L6_bool_binop_done;
} }
/* "Recode.pyx":550 /* "Recode.pyx":554
* while symbol is not NULL: * while symbol is not NULL:
* if (symbol.type == RECODE_CHARSET * if (symbol.type == RECODE_CHARSET
* and symbol is not self.outer.iconv_pivot # << <<<<<<<<<<<< * and symbol is not self.outer.iconv_pivot # << <<<<<<<<<<<<
* and symbol is not self.outer.data_symbol): * and symbol is not self.outer.data_symbol):
* list.append(symbol.name) * list.append(symbol.name)
*/ */
__pyx_t_4 = ((__pyx_v_symbol != __pyx_v_self->outer->iconv_pivot) != 0); __pyx_t_4 = ((__pyx_v_symbol != __pyx_v_self->outer->iconv_pivot) != 0);
if (__pyx_t_4) { if (__pyx_t_4) {
} else { } else {
__pyx_t_3 = __pyx_t_4; __pyx_t_3 = __pyx_t_4;
goto __pyx_L6_bool_binop_done; goto __pyx_L6_bool_binop_done;
} }
/* "Recode.pyx":551 /* "Recode.pyx":555
* if (symbol.type == RECODE_CHARSET * if (symbol.type == RECODE_CHARSET
* and symbol is not self.outer.iconv_pivot * and symbol is not self.outer.iconv_pivot
* and symbol is not self.outer.data_symbol): # <<<<<<<<<<<<<< * and symbol is not self.outer.data_symbol): # <<<<<<<<<<<<<<
* list.append(symbol.name) * list.append(symbol.name)
* symbol = symbol.next * symbol = symbol.next
*/ */
__pyx_t_4 = ((__pyx_v_symbol != __pyx_v_self->outer->data_symbol) != 0); __pyx_t_4 = ((__pyx_v_symbol != __pyx_v_self->outer->data_symbol) != 0);
__pyx_t_3 = __pyx_t_4; __pyx_t_3 = __pyx_t_4;
__pyx_L6_bool_binop_done:; __pyx_L6_bool_binop_done:;
/* "Recode.pyx":549 /* "Recode.pyx":553
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
* while symbol is not NULL: * while symbol is not NULL:
* if (symbol.type == RECODE_CHARSET # <<<<<<<<<<<<<< * if (symbol.type == RECODE_CHARSET # <<<<<<<<<<<<<<
* and symbol is not self.outer.iconv_pivot * and symbol is not self.outer.iconv_pivot
* and symbol is not self.outer.data_symbol): * and symbol is not self.outer.data_symbol):
*/ */
if (__pyx_t_3) { if (__pyx_t_3) {
/* "Recode.pyx":552 /* "Recode.pyx":556
* and symbol is not self.outer.iconv_pivot * and symbol is not self.outer.iconv_pivot
* and symbol is not self.outer.data_symbol): * and symbol is not self.outer.data_symbol):
* list.append(symbol.name) # <<<<<<<<<<<<<< * list.append(symbol.name) # <<<<<<<<<<<<<<
* symbol = symbol.next * symbol = symbol.next
* return list * return list
*/ */
__pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_symbol->name); if (unlikely(! __pyx_t_1)) __PYX_ERR(1, 552, __pyx_L1_error) __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_symbol->name); if (unlikely(! __pyx_t_1)) __PYX_ERR(1, 556, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_t_5 = __Pyx_PyList_Append(__pyx_v_list, __pyx_t_1); if (unlikely(__p yx_t_5 == ((int)-1))) __PYX_ERR(1, 552, __pyx_L1_error) __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_list, __pyx_t_1); if (unlikely(__p yx_t_5 == ((int)-1))) __PYX_ERR(1, 556, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":549 /* "Recode.pyx":553
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
* while symbol is not NULL: * while symbol is not NULL:
* if (symbol.type == RECODE_CHARSET # <<<<<<<<<<<<<< * if (symbol.type == RECODE_CHARSET # <<<<<<<<<<<<<<
* and symbol is not self.outer.iconv_pivot * and symbol is not self.outer.iconv_pivot
* and symbol is not self.outer.data_symbol): * and symbol is not self.outer.data_symbol):
*/ */
} }
/* "Recode.pyx":553 /* "Recode.pyx":557
* and symbol is not self.outer.data_symbol): * and symbol is not self.outer.data_symbol):
* list.append(symbol.name) * list.append(symbol.name)
* symbol = symbol.next # <<<<<<<<<<<<<< * symbol = symbol.next # <<<<<<<<<<<<<<
* return list * return list
* *
*/ */
__pyx_t_6 = __pyx_v_symbol->next; __pyx_t_6 = __pyx_v_symbol->next;
__pyx_v_symbol = __pyx_t_6; __pyx_v_symbol = __pyx_t_6;
} }
/* "Recode.pyx":554 /* "Recode.pyx":558
* list.append(symbol.name) * list.append(symbol.name)
* symbol = symbol.next * symbol = symbol.next
* return list # <<<<<<<<<<<<<< * return list # <<<<<<<<<<<<<<
* *
* def all_surfaces(self): * def all_surfaces(self):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_list); __Pyx_INCREF(__pyx_v_list);
__pyx_r = __pyx_v_list; __pyx_r = __pyx_v_list;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":544 /* "Recode.pyx":548
* return locale_charset() * return locale_charset()
* *
* def all_charsets(self): # <<<<<<<<<<<<<< * def all_charsets(self): # <<<<<<<<<<<<<<
* list = [] * list = []
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Outer.all_charsets", __pyx_clineno, __pyx_lineno, _ _pyx_filename); __Pyx_AddTraceback("Recode.Outer.all_charsets", __pyx_clineno, __pyx_lineno, _ _pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XDECREF(__pyx_v_list); __Pyx_XDECREF(__pyx_v_list);
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":556 /* "Recode.pyx":560
* return list * return list
* *
* def all_surfaces(self): # <<<<<<<<<<<<<< * def all_surfaces(self): # <<<<<<<<<<<<<<
* list = [] * list = []
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_5Outer_9all_surfaces(PyObject *__pyx_v_self, C YTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_6Recode_5Outer_9all_surfaces(PyObject *__pyx_v_self, C YTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_6Recode_5Outer_9all_surfaces(PyObject *__pyx_v_self, C YTHON_UNUSED PyObject *unused) { static PyObject *__pyx_pw_6Recode_5Outer_9all_surfaces(PyObject *__pyx_v_self, C YTHON_UNUSED PyObject *unused) {
skipping to change at line 2056 skipping to change at line 2086
RECODE_SYMBOL __pyx_v_symbol; RECODE_SYMBOL __pyx_v_symbol;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
RECODE_SYMBOL __pyx_t_2; RECODE_SYMBOL __pyx_t_2;
int __pyx_t_3; int __pyx_t_3;
int __pyx_t_4; int __pyx_t_4;
struct recode_symbol *__pyx_t_5; struct recode_symbol *__pyx_t_5;
__Pyx_RefNannySetupContext("all_surfaces", 0); __Pyx_RefNannySetupContext("all_surfaces", 0);
/* "Recode.pyx":557 /* "Recode.pyx":561
* *
* def all_surfaces(self): * def all_surfaces(self):
* list = [] # <<<<<<<<<<<<<< * list = [] # <<<<<<<<<<<<<<
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
*/ */
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 557, __pyx_L 1_error) __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 561, __pyx_L 1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_v_list = ((PyObject*)__pyx_t_1); __pyx_v_list = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0; __pyx_t_1 = 0;
/* "Recode.pyx":559 /* "Recode.pyx":563
* list = [] * list = []
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
* symbol = self.outer.symbol_list # <<<<<<<<<<<<<< * symbol = self.outer.symbol_list # <<<<<<<<<<<<<<
* while symbol is not NULL: * while symbol is not NULL:
* if symbol.type != RECODE_CHARSET: * if symbol.type != RECODE_CHARSET:
*/ */
__pyx_t_2 = __pyx_v_self->outer->symbol_list; __pyx_t_2 = __pyx_v_self->outer->symbol_list;
__pyx_v_symbol = __pyx_t_2; __pyx_v_symbol = __pyx_t_2;
/* "Recode.pyx":560 /* "Recode.pyx":564
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
* while symbol is not NULL: # <<<<<<<<<<<<<< * while symbol is not NULL: # <<<<<<<<<<<<<<
* if symbol.type != RECODE_CHARSET: * if symbol.type != RECODE_CHARSET:
* list.append(symbol.name) * list.append(symbol.name)
*/ */
while (1) { while (1) {
__pyx_t_3 = ((__pyx_v_symbol != NULL) != 0); __pyx_t_3 = ((__pyx_v_symbol != NULL) != 0);
if (!__pyx_t_3) break; if (!__pyx_t_3) break;
/* "Recode.pyx":561 /* "Recode.pyx":565
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
* while symbol is not NULL: * while symbol is not NULL:
* if symbol.type != RECODE_CHARSET: # <<<<<<<<<<<<<< * if symbol.type != RECODE_CHARSET: # <<<<<<<<<<<<<<
* list.append(symbol.name) * list.append(symbol.name)
* symbol = symbol.next * symbol = symbol.next
*/ */
__pyx_t_3 = ((__pyx_v_symbol->type != RECODE_CHARSET) != 0); __pyx_t_3 = ((__pyx_v_symbol->type != RECODE_CHARSET) != 0);
if (__pyx_t_3) { if (__pyx_t_3) {
/* "Recode.pyx":562 /* "Recode.pyx":566
* while symbol is not NULL: * while symbol is not NULL:
* if symbol.type != RECODE_CHARSET: * if symbol.type != RECODE_CHARSET:
* list.append(symbol.name) # <<<<<<<<<<<<<< * list.append(symbol.name) # <<<<<<<<<<<<<<
* symbol = symbol.next * symbol = symbol.next
* return list * return list
*/ */
__pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_symbol->name); if (unlikely(! __pyx_t_1)) __PYX_ERR(1, 562, __pyx_L1_error) __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_symbol->name); if (unlikely(! __pyx_t_1)) __PYX_ERR(1, 566, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_t_4 = __Pyx_PyList_Append(__pyx_v_list, __pyx_t_1); if (unlikely(__p yx_t_4 == ((int)-1))) __PYX_ERR(1, 562, __pyx_L1_error) __pyx_t_4 = __Pyx_PyList_Append(__pyx_v_list, __pyx_t_1); if (unlikely(__p yx_t_4 == ((int)-1))) __PYX_ERR(1, 566, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":561 /* "Recode.pyx":565
* symbol = self.outer.symbol_list * symbol = self.outer.symbol_list
* while symbol is not NULL: * while symbol is not NULL:
* if symbol.type != RECODE_CHARSET: # <<<<<<<<<<<<<< * if symbol.type != RECODE_CHARSET: # <<<<<<<<<<<<<<
* list.append(symbol.name) * list.append(symbol.name)
* symbol = symbol.next * symbol = symbol.next
*/ */
} }
/* "Recode.pyx":563 /* "Recode.pyx":567
* if symbol.type != RECODE_CHARSET: * if symbol.type != RECODE_CHARSET:
* list.append(symbol.name) * list.append(symbol.name)
* symbol = symbol.next # <<<<<<<<<<<<<< * symbol = symbol.next # <<<<<<<<<<<<<<
* return list * return list
* *
*/ */
__pyx_t_5 = __pyx_v_symbol->next; __pyx_t_5 = __pyx_v_symbol->next;
__pyx_v_symbol = __pyx_t_5; __pyx_v_symbol = __pyx_t_5;
} }
/* "Recode.pyx":564 /* "Recode.pyx":568
* list.append(symbol.name) * list.append(symbol.name)
* symbol = symbol.next * symbol = symbol.next
* return list # <<<<<<<<<<<<<< * return list # <<<<<<<<<<<<<<
* *
* def concise_charset(self, format=NO_FORMAT): * def concise_charset(self, format=NO_FORMAT):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_list); __Pyx_INCREF(__pyx_v_list);
__pyx_r = __pyx_v_list; __pyx_r = __pyx_v_list;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":556 /* "Recode.pyx":560
* return list * return list
* *
* def all_surfaces(self): # <<<<<<<<<<<<<< * def all_surfaces(self): # <<<<<<<<<<<<<<
* list = [] * list = []
* cdef RECODE_SYMBOL symbol * cdef RECODE_SYMBOL symbol
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Outer.all_surfaces", __pyx_clineno, __pyx_lineno, _ _pyx_filename); __Pyx_AddTraceback("Recode.Outer.all_surfaces", __pyx_clineno, __pyx_lineno, _ _pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XDECREF(__pyx_v_list); __Pyx_XDECREF(__pyx_v_list);
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":566 /* "Recode.pyx":570
* return list * return list
* *
* def concise_charset(self, format=NO_FORMAT): # <<<<<<<<<<<<<< * def concise_charset(self, format=NO_FORMAT): # <<<<<<<<<<<<<<
* ok = list_concise_charset(self.outer, NULL, format) * ok = list_concise_charset(self.outer, NULL, format)
* if not ok: * if not ok:
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_5Outer_11concise_charset(PyObject *__pyx_v_sel f, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_pw_6Recode_5Outer_11concise_charset(PyObject *__pyx_v_sel f, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_6Recode_5Outer_11concise_charset(PyObject *__pyx_v_sel f, PyObject *__pyx_args, PyObject *__pyx_kwds) { static PyObject *__pyx_pw_6Recode_5Outer_11concise_charset(PyObject *__pyx_v_sel f, PyObject *__pyx_args, PyObject *__pyx_kwds) {
skipping to change at line 2200 skipping to change at line 2230
} }
kw_args = PyDict_Size(__pyx_kwds); kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) { switch (pos_args) {
case 0: case 0:
if (kw_args > 0) { if (kw_args > 0) {
PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format ); PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_format );
if (value) { values[0] = value; kw_args--; } if (value) { values[0] = value; kw_args--; }
} }
} }
if (unlikely(kw_args > 0)) { if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "concise_charset") < 0)) __PYX_ERR(1, 566, __pyx_L3_error) if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "concise_charset") < 0)) __PYX_ERR(1, 570, __pyx_L3_error)
} }
} else { } else {
switch (PyTuple_GET_SIZE(__pyx_args)) { switch (PyTuple_GET_SIZE(__pyx_args)) {
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 0: break; case 0: break;
default: goto __pyx_L5_argtuple_error; default: goto __pyx_L5_argtuple_error;
} }
} }
__pyx_v_format = values[0]; __pyx_v_format = values[0];
} }
goto __pyx_L4_argument_unpacking_done; goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:; __pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("concise_charset", 0, 0, 1, PyTuple_GET_SIZE(__pyx_ args)); __PYX_ERR(1, 566, __pyx_L3_error) __Pyx_RaiseArgtupleInvalid("concise_charset", 0, 0, 1, PyTuple_GET_SIZE(__pyx_ args)); __PYX_ERR(1, 570, __pyx_L3_error)
__pyx_L3_error:; __pyx_L3_error:;
__Pyx_AddTraceback("Recode.Outer.concise_charset", __pyx_clineno, __pyx_lineno , __pyx_filename); __Pyx_AddTraceback("Recode.Outer.concise_charset", __pyx_clineno, __pyx_lineno , __pyx_filename);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return NULL; return NULL;
__pyx_L4_argument_unpacking_done:; __pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_6Recode_5Outer_10concise_charset(((struct __pyx_obj_6Recode _Outer *)__pyx_v_self), __pyx_v_format); __pyx_r = __pyx_pf_6Recode_5Outer_10concise_charset(((struct __pyx_obj_6Recode _Outer *)__pyx_v_self), __pyx_v_format);
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
skipping to change at line 2236 skipping to change at line 2266
static PyObject *__pyx_pf_6Recode_5Outer_10concise_charset(struct __pyx_obj_6Rec ode_Outer *__pyx_v_self, PyObject *__pyx_v_format) { static PyObject *__pyx_pf_6Recode_5Outer_10concise_charset(struct __pyx_obj_6Rec ode_Outer *__pyx_v_self, PyObject *__pyx_v_format) {
bool __pyx_v_ok; bool __pyx_v_ok;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
enum recode_list_format __pyx_t_1; enum recode_list_format __pyx_t_1;
int __pyx_t_2; int __pyx_t_2;
PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_3 = NULL;
__Pyx_RefNannySetupContext("concise_charset", 0); __Pyx_RefNannySetupContext("concise_charset", 0);
/* "Recode.pyx":567 /* "Recode.pyx":571
* *
* def concise_charset(self, format=NO_FORMAT): * def concise_charset(self, format=NO_FORMAT):
* ok = list_concise_charset(self.outer, NULL, format) # <<< <<<<<<<<<<< * ok = list_concise_charset(self.outer, NULL, format) # <<< <<<<<<<<<<<
* if not ok: * if not ok:
* raise error * raise error
*/ */
__pyx_t_1 = ((enum recode_list_format)__Pyx_PyInt_As_enum__recode_list_format( __pyx_v_format)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 567, __pyx_L1_err or) __pyx_t_1 = ((enum recode_list_format)__Pyx_PyInt_As_enum__recode_list_format( __pyx_v_format)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 571, __pyx_L1_err or)
__pyx_v_ok = list_concise_charset(__pyx_v_self->outer, NULL, __pyx_t_1); __pyx_v_ok = list_concise_charset(__pyx_v_self->outer, NULL, __pyx_t_1);
/* "Recode.pyx":568 /* "Recode.pyx":572
* def concise_charset(self, format=NO_FORMAT): * def concise_charset(self, format=NO_FORMAT):
* ok = list_concise_charset(self.outer, NULL, format) * ok = list_concise_charset(self.outer, NULL, format)
* if not ok: # <<<<<<<<<<<<<< * if not ok: # <<<<<<<<<<<<<<
* raise error * raise error
* *
*/ */
__pyx_t_2 = ((!(__pyx_v_ok != 0)) != 0); __pyx_t_2 = ((!(__pyx_v_ok != 0)) != 0);
if (unlikely(__pyx_t_2)) { if (unlikely(__pyx_t_2)) {
/* "Recode.pyx":569 /* "Recode.pyx":573
* ok = list_concise_charset(self.outer, NULL, format) * ok = list_concise_charset(self.outer, NULL, format)
* if not ok: * if not ok:
* raise error # <<<<<<<<<<<<<< * raise error # <<<<<<<<<<<<<<
* *
* def full_charset(self): * def full_charset(self):
*/ */
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_error); if (unlikely(!__pyx_t _3)) __PYX_ERR(1, 569, __pyx_L1_error) __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_error); if (unlikely(!__pyx_t _3)) __PYX_ERR(1, 573, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0); __Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__PYX_ERR(1, 569, __pyx_L1_error) __PYX_ERR(1, 573, __pyx_L1_error)
/* "Recode.pyx":568 /* "Recode.pyx":572
* def concise_charset(self, format=NO_FORMAT): * def concise_charset(self, format=NO_FORMAT):
* ok = list_concise_charset(self.outer, NULL, format) * ok = list_concise_charset(self.outer, NULL, format)
* if not ok: # <<<<<<<<<<<<<< * if not ok: # <<<<<<<<<<<<<<
* raise error * raise error
* *
*/ */
} }
/* "Recode.pyx":566 /* "Recode.pyx":570
* return list * return list
* *
* def concise_charset(self, format=NO_FORMAT): # <<<<<<<<<<<<<< * def concise_charset(self, format=NO_FORMAT): # <<<<<<<<<<<<<<
* ok = list_concise_charset(self.outer, NULL, format) * ok = list_concise_charset(self.outer, NULL, format)
* if not ok: * if not ok:
*/ */
/* function exit code */ /* function exit code */
__pyx_r = Py_None; __Pyx_INCREF(Py_None); __pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0; goto __pyx_L0;
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_3);
__Pyx_AddTraceback("Recode.Outer.concise_charset", __pyx_clineno, __pyx_lineno , __pyx_filename); __Pyx_AddTraceback("Recode.Outer.concise_charset", __pyx_clineno, __pyx_lineno , __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":571 /* "Recode.pyx":575
* raise error * raise error
* *
* def full_charset(self): # <<<<<<<<<<<<<< * def full_charset(self): # <<<<<<<<<<<<<<
* ok = list_full_charset(self.outer, NULL) * ok = list_full_charset(self.outer, NULL)
* if not ok: * if not ok:
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_5Outer_13full_charset(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_6Recode_5Outer_13full_charset(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_6Recode_5Outer_13full_charset(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { static PyObject *__pyx_pw_6Recode_5Outer_13full_charset(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
skipping to change at line 2328 skipping to change at line 2358
} }
static PyObject *__pyx_pf_6Recode_5Outer_12full_charset(struct __pyx_obj_6Recode _Outer *__pyx_v_self) { static PyObject *__pyx_pf_6Recode_5Outer_12full_charset(struct __pyx_obj_6Recode _Outer *__pyx_v_self) {
bool __pyx_v_ok; bool __pyx_v_ok;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
int __pyx_t_1; int __pyx_t_1;
PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("full_charset", 0); __Pyx_RefNannySetupContext("full_charset", 0);
/* "Recode.pyx":572 /* "Recode.pyx":576
* *
* def full_charset(self): * def full_charset(self):
* ok = list_full_charset(self.outer, NULL) # <<<<<<<<<<<<<< * ok = list_full_charset(self.outer, NULL) # <<<<<<<<<<<<<<
* if not ok: * if not ok:
* raise error * raise error
*/ */
__pyx_v_ok = list_full_charset(__pyx_v_self->outer, NULL); __pyx_v_ok = list_full_charset(__pyx_v_self->outer, NULL);
/* "Recode.pyx":573 /* "Recode.pyx":577
* def full_charset(self): * def full_charset(self):
* ok = list_full_charset(self.outer, NULL) * ok = list_full_charset(self.outer, NULL)
* if not ok: # <<<<<<<<<<<<<< * if not ok: # <<<<<<<<<<<<<<
* raise error * raise error
* *
*/ */
__pyx_t_1 = ((!(__pyx_v_ok != 0)) != 0); __pyx_t_1 = ((!(__pyx_v_ok != 0)) != 0);
if (unlikely(__pyx_t_1)) { if (unlikely(__pyx_t_1)) {
/* "Recode.pyx":574 /* "Recode.pyx":578
* ok = list_full_charset(self.outer, NULL) * ok = list_full_charset(self.outer, NULL)
* if not ok: * if not ok:
* raise error # <<<<<<<<<<<<<< * raise error # <<<<<<<<<<<<<<
* *
* # Lazy, all in one call. * # Lazy, all in one call.
*/ */
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_error); if (unlikely(!__pyx_t _2)) __PYX_ERR(1, 574, __pyx_L1_error) __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_error); if (unlikely(!__pyx_t _2)) __PYX_ERR(1, 578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__PYX_ERR(1, 574, __pyx_L1_error) __PYX_ERR(1, 578, __pyx_L1_error)
/* "Recode.pyx":573 /* "Recode.pyx":577
* def full_charset(self): * def full_charset(self):
* ok = list_full_charset(self.outer, NULL) * ok = list_full_charset(self.outer, NULL)
* if not ok: # <<<<<<<<<<<<<< * if not ok: # <<<<<<<<<<<<<<
* raise error * raise error
* *
*/ */
} }
/* "Recode.pyx":571 /* "Recode.pyx":575
* raise error * raise error
* *
* def full_charset(self): # <<<<<<<<<<<<<< * def full_charset(self): # <<<<<<<<<<<<<<
* ok = list_full_charset(self.outer, NULL) * ok = list_full_charset(self.outer, NULL)
* if not ok: * if not ok:
*/ */
/* function exit code */ /* function exit code */
__pyx_r = Py_None; __Pyx_INCREF(Py_None); __pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0; goto __pyx_L0;
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_2);
__Pyx_AddTraceback("Recode.Outer.full_charset", __pyx_clineno, __pyx_lineno, _ _pyx_filename); __Pyx_AddTraceback("Recode.Outer.full_charset", __pyx_clineno, __pyx_lineno, _ _pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":577 /* "Recode.pyx":581
* *
* # Lazy, all in one call. * # Lazy, all in one call.
* def recode(self, char *command, char *input, verbose=False): # <<<<<<<<<<<<<< * def recode(self, char *command, char *input, verbose=False): # <<<<<<<<<<<<<<
* request = Request(self) * request = Request(self)
* request.set_verbose(verbose) * request.set_verbose(verbose)
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_5Outer_15recode(PyObject *__pyx_v_self, PyObje ct *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_pw_6Recode_5Outer_15recode(PyObject *__pyx_v_self, PyObje ct *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_6Recode_5Outer_15recode(PyObject *__pyx_v_self, PyObje ct *__pyx_args, PyObject *__pyx_kwds) { static PyObject *__pyx_pw_6Recode_5Outer_15recode(PyObject *__pyx_v_self, PyObje ct *__pyx_args, PyObject *__pyx_kwds) {
skipping to change at line 2433 skipping to change at line 2463
} }
kw_args = PyDict_Size(__pyx_kwds); kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) { switch (pos_args) {
case 0: case 0:
if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_co mmand)) != 0)) kw_args--; if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_co mmand)) != 0)) kw_args--;
else goto __pyx_L5_argtuple_error; else goto __pyx_L5_argtuple_error;
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 1: case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in put)) != 0)) kw_args--; if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_in put)) != 0)) kw_args--;
else { else {
__Pyx_RaiseArgtupleInvalid("recode", 0, 2, 3, 1); __PYX_ERR(1, 577, __ pyx_L3_error) __Pyx_RaiseArgtupleInvalid("recode", 0, 2, 3, 1); __PYX_ERR(1, 581, __ pyx_L3_error)
} }
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 2: case 2:
if (kw_args > 0) { if (kw_args > 0) {
PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_verbos e); PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_verbos e);
if (value) { values[2] = value; kw_args--; } if (value) { values[2] = value; kw_args--; }
} }
} }
if (unlikely(kw_args > 0)) { if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "recode") < 0)) __PYX_ERR(1, 577, __pyx_L3_error) if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "recode") < 0)) __PYX_ERR(1, 581, __pyx_L3_error)
} }
} else { } else {
switch (PyTuple_GET_SIZE(__pyx_args)) { switch (PyTuple_GET_SIZE(__pyx_args)) {
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2); case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
break; break;
default: goto __pyx_L5_argtuple_error; default: goto __pyx_L5_argtuple_error;
} }
} }
__pyx_v_command = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely(( __pyx_v_command = __Pyx_PyObject_AsWritableString(values[0]); if (unlikely((
!__pyx_v_command) && PyErr_Occurred())) __PYX_ERR(1, 577, __pyx_L3_error) !__pyx_v_command) && PyErr_Occurred())) __PYX_ERR(1, 581, __pyx_L3_error)
__pyx_v_input = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!_ __pyx_v_input = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((!_
_pyx_v_input) && PyErr_Occurred())) __PYX_ERR(1, 577, __pyx_L3_error) _pyx_v_input) && PyErr_Occurred())) __PYX_ERR(1, 581, __pyx_L3_error)
__pyx_v_verbose = values[2]; __pyx_v_verbose = values[2];
} }
goto __pyx_L4_argument_unpacking_done; goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:; __pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("recode", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); _ _PYX_ERR(1, 577, __pyx_L3_error) __Pyx_RaiseArgtupleInvalid("recode", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); _ _PYX_ERR(1, 581, __pyx_L3_error)
__pyx_L3_error:; __pyx_L3_error:;
__Pyx_AddTraceback("Recode.Outer.recode", __pyx_clineno, __pyx_lineno, __pyx_f ilename); __Pyx_AddTraceback("Recode.Outer.recode", __pyx_clineno, __pyx_lineno, __pyx_f ilename);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return NULL; return NULL;
__pyx_L4_argument_unpacking_done:; __pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_6Recode_5Outer_14recode(((struct __pyx_obj_6Recode_Outer *) __pyx_v_self), __pyx_v_command, __pyx_v_input, __pyx_v_verbose); __pyx_r = __pyx_pf_6Recode_5Outer_14recode(((struct __pyx_obj_6Recode_Outer *) __pyx_v_self), __pyx_v_command, __pyx_v_input, __pyx_v_verbose);
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
skipping to change at line 2484 skipping to change at line 2514
static PyObject *__pyx_pf_6Recode_5Outer_14recode(struct __pyx_obj_6Recode_Outer *__pyx_v_self, char *__pyx_v_command, char *__pyx_v_input, PyObject *__pyx_v_ve rbose) { static PyObject *__pyx_pf_6Recode_5Outer_14recode(struct __pyx_obj_6Recode_Outer *__pyx_v_self, char *__pyx_v_command, char *__pyx_v_input, PyObject *__pyx_v_ve rbose) {
struct __pyx_obj_6Recode_Request *__pyx_v_request = NULL; struct __pyx_obj_6Recode_Request *__pyx_v_request = NULL;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_4 = NULL;
__Pyx_RefNannySetupContext("recode", 0); __Pyx_RefNannySetupContext("recode", 0);
/* "Recode.pyx":578 /* "Recode.pyx":582
* # Lazy, all in one call. * # Lazy, all in one call.
* def recode(self, char *command, char *input, verbose=False): * def recode(self, char *command, char *input, verbose=False):
* request = Request(self) # <<<<<<<<<<<<<< * request = Request(self) # <<<<<<<<<<<<<<
* request.set_verbose(verbose) * request.set_verbose(verbose)
* request.scan(command) * request.scan(command)
*/ */
__pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6Recode_Request ), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 578, __py x_L1_error) __pyx_t_1 = __Pyx_PyObject_CallOneArg(((PyObject *)__pyx_ptype_6Recode_Request ), ((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 582, __py x_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_v_request = ((struct __pyx_obj_6Recode_Request *)__pyx_t_1); __pyx_v_request = ((struct __pyx_obj_6Recode_Request *)__pyx_t_1);
__pyx_t_1 = 0; __pyx_t_1 = 0;
/* "Recode.pyx":579 /* "Recode.pyx":583
* def recode(self, char *command, char *input, verbose=False): * def recode(self, char *command, char *input, verbose=False):
* request = Request(self) * request = Request(self)
* request.set_verbose(verbose) # <<<<<<<<<<<<<< * request.set_verbose(verbose) # <<<<<<<<<<<<<<
* request.scan(command) * request.scan(command)
* return request.string(input) * return request.string(input)
*/ */
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_request), __pyx_n_s _set_verbose); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 579, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_request), __pyx_n_s _set_verbose); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL; __pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_3)) { if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_3); __Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function); __Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function); __Pyx_DECREF_SET(__pyx_t_2, function);
} }
} }
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx _v_verbose) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_verbose); __pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx _v_verbose) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_verbose);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 579, __pyx_L1_error) if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":580 /* "Recode.pyx":584
* request = Request(self) * request = Request(self)
* request.set_verbose(verbose) * request.set_verbose(verbose)
* request.scan(command) # <<<<<<<<<<<<<< * request.scan(command) # <<<<<<<<<<<<<<
* return request.string(input) * return request.string(input)
* *
*/ */
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_request), __pyx_n_s _scan); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 580, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_request), __pyx_n_s _scan); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_command); if (unlikely(!__pyx_t_3 )) __PYX_ERR(1, 580, __pyx_L1_error) __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_command); if (unlikely(!__pyx_t_3 )) __PYX_ERR(1, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL; __pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_4)) { if (likely(__pyx_t_4)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_4);
__Pyx_INCREF(function); __Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function); __Pyx_DECREF_SET(__pyx_t_2, function);
} }
} }
__pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx _t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx _t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 580, __pyx_L1_error) if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":581 /* "Recode.pyx":585
* request.set_verbose(verbose) * request.set_verbose(verbose)
* request.scan(command) * request.scan(command)
* return request.string(input) # <<<<<<<<<<<<<< * return request.string(input) # <<<<<<<<<<<<<<
* *
* # Recode library at REQUEST level. * # Recode library at REQUEST level.
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_request), __pyx_n_s _string); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 581, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_request), __pyx_n_s _string); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 585, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_input); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 581, __pyx_L1_error) __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_input); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 585, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL; __pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) { if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_4)) { if (likely(__pyx_t_4)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_4); __Pyx_INCREF(__pyx_t_4);
__Pyx_INCREF(function); __Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function); __Pyx_DECREF_SET(__pyx_t_2, function);
} }
} }
__pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx _t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); __pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_4, __pyx _t_3) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 581, __pyx_L1_error) if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 585, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_1; __pyx_r = __pyx_t_1;
__pyx_t_1 = 0; __pyx_t_1 = 0;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":577 /* "Recode.pyx":581
* *
* # Lazy, all in one call. * # Lazy, all in one call.
* def recode(self, char *command, char *input, verbose=False): # <<<<<<<<<<<<<< * def recode(self, char *command, char *input, verbose=False): # <<<<<<<<<<<<<<
* request = Request(self) * request = Request(self)
* request.set_verbose(verbose) * request.set_verbose(verbose)
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
skipping to change at line 2713 skipping to change at line 2743
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Outer.__setstate_cython__", __pyx_clineno, __pyx_li neno, __pyx_filename); __Pyx_AddTraceback("Recode.Outer.__setstate_cython__", __pyx_clineno, __pyx_li neno, __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":588 /* "Recode.pyx":592
* cdef RECODE_REQUEST request * cdef RECODE_REQUEST request
* *
* def __init__(self, Outer outer): # <<<<<<<<<<<<<< * def __init__(self, Outer outer): # <<<<<<<<<<<<<<
* self.request = recode_new_request(outer.outer) * self.request = recode_new_request(outer.outer)
* *
*/ */
/* Python wrapper */ /* Python wrapper */
static int __pyx_pw_6Recode_7Request_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_6Recode_7Request_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6Recode_7Request_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { static int __pyx_pw_6Recode_7Request_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
skipping to change at line 2747 skipping to change at line 2777
case 0: break; case 0: break;
default: goto __pyx_L5_argtuple_error; default: goto __pyx_L5_argtuple_error;
} }
kw_args = PyDict_Size(__pyx_kwds); kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) { switch (pos_args) {
case 0: case 0:
if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ou ter)) != 0)) kw_args--; if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ou ter)) != 0)) kw_args--;
else goto __pyx_L5_argtuple_error; else goto __pyx_L5_argtuple_error;
} }
if (unlikely(kw_args > 0)) { if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "__init__") < 0)) __PYX_ERR(1, 588, __pyx_L3_error) if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "__init__") < 0)) __PYX_ERR(1, 592, __pyx_L3_error)
} }
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) { } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error; goto __pyx_L5_argtuple_error;
} else { } else {
values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
} }
__pyx_v_outer = ((struct __pyx_obj_6Recode_Outer *)values[0]); __pyx_v_outer = ((struct __pyx_obj_6Recode_Outer *)values[0]);
} }
goto __pyx_L4_argument_unpacking_done; goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:; __pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 588, __pyx_L3_error) __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 592, __pyx_L3_error)
__pyx_L3_error:; __pyx_L3_error:;
__Pyx_AddTraceback("Recode.Request.__init__", __pyx_clineno, __pyx_lineno, __p yx_filename); __Pyx_AddTraceback("Recode.Request.__init__", __pyx_clineno, __pyx_lineno, __p yx_filename);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return -1; return -1;
__pyx_L4_argument_unpacking_done:; __pyx_L4_argument_unpacking_done:;
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outer), __pyx_ptype_6Reco de_Outer, 1, "outer", 0))) __PYX_ERR(1, 588, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_outer), __pyx_ptype_6Reco de_Outer, 1, "outer", 0))) __PYX_ERR(1, 592, __pyx_L1_error)
__pyx_r = __pyx_pf_6Recode_7Request___init__(((struct __pyx_obj_6Recode_Reques t *)__pyx_v_self), __pyx_v_outer); __pyx_r = __pyx_pf_6Recode_7Request___init__(((struct __pyx_obj_6Recode_Reques t *)__pyx_v_self), __pyx_v_outer);
/* function exit code */ /* function exit code */
goto __pyx_L0; goto __pyx_L0;
__pyx_L1_error:; __pyx_L1_error:;
__pyx_r = -1; __pyx_r = -1;
__pyx_L0:; __pyx_L0:;
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
static int __pyx_pf_6Recode_7Request___init__(struct __pyx_obj_6Recode_Request * __pyx_v_self, struct __pyx_obj_6Recode_Outer *__pyx_v_outer) { static int __pyx_pf_6Recode_7Request___init__(struct __pyx_obj_6Recode_Request * __pyx_v_self, struct __pyx_obj_6Recode_Outer *__pyx_v_outer) {
int __pyx_r; int __pyx_r;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__init__", 0); __Pyx_RefNannySetupContext("__init__", 0);
/* "Recode.pyx":589 /* "Recode.pyx":593
* *
* def __init__(self, Outer outer): * def __init__(self, Outer outer):
* self.request = recode_new_request(outer.outer) # <<<<<<<< <<<<<< * self.request = recode_new_request(outer.outer) # <<<<<<<< <<<<<<
* *
* def __dealloc__(self): * def __dealloc__(self):
*/ */
__pyx_v_self->request = recode_new_request(__pyx_v_outer->outer); __pyx_v_self->request = recode_new_request(__pyx_v_outer->outer);
/* "Recode.pyx":588 /* "Recode.pyx":592
* cdef RECODE_REQUEST request * cdef RECODE_REQUEST request
* *
* def __init__(self, Outer outer): # <<<<<<<<<<<<<< * def __init__(self, Outer outer): # <<<<<<<<<<<<<<
* self.request = recode_new_request(outer.outer) * self.request = recode_new_request(outer.outer)
* *
*/ */
/* function exit code */ /* function exit code */
__pyx_r = 0; __pyx_r = 0;
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":591 /* "Recode.pyx":595
* self.request = recode_new_request(outer.outer) * self.request = recode_new_request(outer.outer)
* *
* def __dealloc__(self): # <<<<<<<<<<<<<< * def __dealloc__(self): # <<<<<<<<<<<<<<
* recode_delete_request(self.request) * recode_delete_request(self.request)
* *
*/ */
/* Python wrapper */ /* Python wrapper */
static void __pyx_pw_6Recode_7Request_3__dealloc__(PyObject *__pyx_v_self); /*pr oto*/ static void __pyx_pw_6Recode_7Request_3__dealloc__(PyObject *__pyx_v_self); /*pr oto*/
static void __pyx_pw_6Recode_7Request_3__dealloc__(PyObject *__pyx_v_self) { static void __pyx_pw_6Recode_7Request_3__dealloc__(PyObject *__pyx_v_self) {
skipping to change at line 2827 skipping to change at line 2857
__pyx_pf_6Recode_7Request_2__dealloc__(((struct __pyx_obj_6Recode_Request *)__ pyx_v_self)); __pyx_pf_6Recode_7Request_2__dealloc__(((struct __pyx_obj_6Recode_Request *)__ pyx_v_self));
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
} }
static void __pyx_pf_6Recode_7Request_2__dealloc__(struct __pyx_obj_6Recode_Requ est *__pyx_v_self) { static void __pyx_pf_6Recode_7Request_2__dealloc__(struct __pyx_obj_6Recode_Requ est *__pyx_v_self) {
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__dealloc__", 0); __Pyx_RefNannySetupContext("__dealloc__", 0);
/* "Recode.pyx":592 /* "Recode.pyx":596
* *
* def __dealloc__(self): * def __dealloc__(self):
* recode_delete_request(self.request) # <<<<<<<<<<<<<< * recode_delete_request(self.request) # <<<<<<<<<<<<<<
* *
* def set_verbose(self, flag): * def set_verbose(self, flag):
*/ */
(void)(recode_delete_request(__pyx_v_self->request)); (void)(recode_delete_request(__pyx_v_self->request));
/* "Recode.pyx":591 /* "Recode.pyx":595
* self.request = recode_new_request(outer.outer) * self.request = recode_new_request(outer.outer)
* *
* def __dealloc__(self): # <<<<<<<<<<<<<< * def __dealloc__(self): # <<<<<<<<<<<<<<
* recode_delete_request(self.request) * recode_delete_request(self.request)
* *
*/ */
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
} }
/* "Recode.pyx":594 /* "Recode.pyx":598
* recode_delete_request(self.request) * recode_delete_request(self.request)
* *
* def set_verbose(self, flag): # <<<<<<<<<<<<<< * def set_verbose(self, flag): # <<<<<<<<<<<<<<
* previous = self.request.verbose_flag != 0 * previous = self.request.verbose_flag != 0
* self.request.verbose_flag = int(flag) * self.request.verbose_flag = int(flag)
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_7Request_5set_verbose(PyObject *__pyx_v_self, PyObject *__pyx_v_flag); /*proto*/ static PyObject *__pyx_pw_6Recode_7Request_5set_verbose(PyObject *__pyx_v_self, PyObject *__pyx_v_flag); /*proto*/
static PyObject *__pyx_pw_6Recode_7Request_5set_verbose(PyObject *__pyx_v_self, PyObject *__pyx_v_flag) { static PyObject *__pyx_pw_6Recode_7Request_5set_verbose(PyObject *__pyx_v_self, PyObject *__pyx_v_flag) {
skipping to change at line 2877 skipping to change at line 2907
} }
static PyObject *__pyx_pf_6Recode_7Request_4set_verbose(struct __pyx_obj_6Recode _Request *__pyx_v_self, PyObject *__pyx_v_flag) { static PyObject *__pyx_pf_6Recode_7Request_4set_verbose(struct __pyx_obj_6Recode _Request *__pyx_v_self, PyObject *__pyx_v_flag) {
PyObject *__pyx_v_previous = NULL; PyObject *__pyx_v_previous = NULL;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
bool __pyx_t_2; bool __pyx_t_2;
__Pyx_RefNannySetupContext("set_verbose", 0); __Pyx_RefNannySetupContext("set_verbose", 0);
/* "Recode.pyx":595 /* "Recode.pyx":599
* *
* def set_verbose(self, flag): * def set_verbose(self, flag):
* previous = self.request.verbose_flag != 0 # <<<<<<<<<<<<< < * previous = self.request.verbose_flag != 0 # <<<<<<<<<<<<< <
* self.request.verbose_flag = int(flag) * self.request.verbose_flag = int(flag)
* return previous * return previous
*/ */
__pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->request->verbose_flag != 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 595, __pyx_L1_error) __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->request->verbose_flag != 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 599, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_v_previous = __pyx_t_1; __pyx_v_previous = __pyx_t_1;
__pyx_t_1 = 0; __pyx_t_1 = 0;
/* "Recode.pyx":596 /* "Recode.pyx":600
* def set_verbose(self, flag): * def set_verbose(self, flag):
* previous = self.request.verbose_flag != 0 * previous = self.request.verbose_flag != 0
* self.request.verbose_flag = int(flag) # <<<<<<<<<<<<<< * self.request.verbose_flag = int(flag) # <<<<<<<<<<<<<<
* return previous * return previous
* *
*/ */
__pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_flag); if (unlikely(!__pyx_t_1)) __PYX_ ERR(1, 596, __pyx_L1_error) __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_flag); if (unlikely(!__pyx_t_1)) __PYX_ ERR(1, 600, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == ((boo l)-1)) && PyErr_Occurred())) __PYX_ERR(1, 596, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == ((boo l)-1)) && PyErr_Occurred())) __PYX_ERR(1, 600, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_self->request->verbose_flag = __pyx_t_2; __pyx_v_self->request->verbose_flag = __pyx_t_2;
/* "Recode.pyx":597 /* "Recode.pyx":601
* previous = self.request.verbose_flag != 0 * previous = self.request.verbose_flag != 0
* self.request.verbose_flag = int(flag) * self.request.verbose_flag = int(flag)
* return previous # <<<<<<<<<<<<<< * return previous # <<<<<<<<<<<<<<
* *
* def scan(self, char *text): * def scan(self, char *text):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_previous); __Pyx_INCREF(__pyx_v_previous);
__pyx_r = __pyx_v_previous; __pyx_r = __pyx_v_previous;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":594 /* "Recode.pyx":598
* recode_delete_request(self.request) * recode_delete_request(self.request)
* *
* def set_verbose(self, flag): # <<<<<<<<<<<<<< * def set_verbose(self, flag): # <<<<<<<<<<<<<<
* previous = self.request.verbose_flag != 0 * previous = self.request.verbose_flag != 0
* self.request.verbose_flag = int(flag) * self.request.verbose_flag = int(flag)
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Request.set_verbose", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_AddTraceback("Recode.Request.set_verbose", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XDECREF(__pyx_v_previous); __Pyx_XDECREF(__pyx_v_previous);
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":599 /* "Recode.pyx":603
* return previous * return previous
* *
* def scan(self, char *text): # <<<<<<<<<<<<<< * def scan(self, char *text): # <<<<<<<<<<<<<<
* ok = recode_scan_request(self.request, text) * ok = recode_scan_request(self.request, text)
* if not ok: * if not ok:
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_7Request_7scan(PyObject *__pyx_v_self, PyObjec t *__pyx_arg_text); /*proto*/ static PyObject *__pyx_pw_6Recode_7Request_7scan(PyObject *__pyx_v_self, PyObjec t *__pyx_arg_text); /*proto*/
static PyObject *__pyx_pw_6Recode_7Request_7scan(PyObject *__pyx_v_self, PyObjec t *__pyx_arg_text) { static PyObject *__pyx_pw_6Recode_7Request_7scan(PyObject *__pyx_v_self, PyObjec t *__pyx_arg_text) {
char *__pyx_v_text; char *__pyx_v_text;
PyObject *__pyx_r = 0; PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("scan (wrapper)", 0); __Pyx_RefNannySetupContext("scan (wrapper)", 0);
assert(__pyx_arg_text); { assert(__pyx_arg_text); {
__pyx_v_text = __Pyx_PyObject_AsWritableString(__pyx_arg_text); if (unlikely ((!__pyx_v_text) && PyErr_Occurred())) __PYX_ERR(1, 599, __pyx_L3_error) __pyx_v_text = __Pyx_PyObject_AsWritableString(__pyx_arg_text); if (unlikely ((!__pyx_v_text) && PyErr_Occurred())) __PYX_ERR(1, 603, __pyx_L3_error)
} }
goto __pyx_L4_argument_unpacking_done; goto __pyx_L4_argument_unpacking_done;
__pyx_L3_error:; __pyx_L3_error:;
__Pyx_AddTraceback("Recode.Request.scan", __pyx_clineno, __pyx_lineno, __pyx_f ilename); __Pyx_AddTraceback("Recode.Request.scan", __pyx_clineno, __pyx_lineno, __pyx_f ilename);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return NULL; return NULL;
__pyx_L4_argument_unpacking_done:; __pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_6Recode_7Request_6scan(((struct __pyx_obj_6Recode_Request * )__pyx_v_self), ((char *)__pyx_v_text)); __pyx_r = __pyx_pf_6Recode_7Request_6scan(((struct __pyx_obj_6Recode_Request * )__pyx_v_self), ((char *)__pyx_v_text));
/* function exit code */ /* function exit code */
skipping to change at line 2973 skipping to change at line 3003
} }
static PyObject *__pyx_pf_6Recode_7Request_6scan(struct __pyx_obj_6Recode_Reques t *__pyx_v_self, char *__pyx_v_text) { static PyObject *__pyx_pf_6Recode_7Request_6scan(struct __pyx_obj_6Recode_Reques t *__pyx_v_self, char *__pyx_v_text) {
bool __pyx_v_ok; bool __pyx_v_ok;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
int __pyx_t_1; int __pyx_t_1;
PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("scan", 0); __Pyx_RefNannySetupContext("scan", 0);
/* "Recode.pyx":600 /* "Recode.pyx":604
* *
* def scan(self, char *text): * def scan(self, char *text):
* ok = recode_scan_request(self.request, text) # <<<<<<<<<< <<<< * ok = recode_scan_request(self.request, text) # <<<<<<<<<< <<<<
* if not ok: * if not ok:
* raise error * raise error
*/ */
__pyx_v_ok = recode_scan_request(__pyx_v_self->request, __pyx_v_text); __pyx_v_ok = recode_scan_request(__pyx_v_self->request, __pyx_v_text);
/* "Recode.pyx":601 /* "Recode.pyx":605
* def scan(self, char *text): * def scan(self, char *text):
* ok = recode_scan_request(self.request, text) * ok = recode_scan_request(self.request, text)
* if not ok: # <<<<<<<<<<<<<< * if not ok: # <<<<<<<<<<<<<<
* raise error * raise error
* *
*/ */
__pyx_t_1 = ((!(__pyx_v_ok != 0)) != 0); __pyx_t_1 = ((!(__pyx_v_ok != 0)) != 0);
if (unlikely(__pyx_t_1)) { if (unlikely(__pyx_t_1)) {
/* "Recode.pyx":602 /* "Recode.pyx":606
* ok = recode_scan_request(self.request, text) * ok = recode_scan_request(self.request, text)
* if not ok: * if not ok:
* raise error # <<<<<<<<<<<<<< * raise error # <<<<<<<<<<<<<<
* *
* def pair_sequence(self): * def pair_sequence(self):
*/ */
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_error); if (unlikely(!__pyx_t _2)) __PYX_ERR(1, 602, __pyx_L1_error) __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_error); if (unlikely(!__pyx_t _2)) __PYX_ERR(1, 606, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0); __Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__PYX_ERR(1, 602, __pyx_L1_error) __PYX_ERR(1, 606, __pyx_L1_error)
/* "Recode.pyx":601 /* "Recode.pyx":605
* def scan(self, char *text): * def scan(self, char *text):
* ok = recode_scan_request(self.request, text) * ok = recode_scan_request(self.request, text)
* if not ok: # <<<<<<<<<<<<<< * if not ok: # <<<<<<<<<<<<<<
* raise error * raise error
* *
*/ */
} }
/* "Recode.pyx":599 /* "Recode.pyx":603
* return previous * return previous
* *
* def scan(self, char *text): # <<<<<<<<<<<<<< * def scan(self, char *text): # <<<<<<<<<<<<<<
* ok = recode_scan_request(self.request, text) * ok = recode_scan_request(self.request, text)
* if not ok: * if not ok:
*/ */
/* function exit code */ /* function exit code */
__pyx_r = Py_None; __Pyx_INCREF(Py_None); __pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0; goto __pyx_L0;
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_2);
__Pyx_AddTraceback("Recode.Request.scan", __pyx_clineno, __pyx_lineno, __pyx_f ilename); __Pyx_AddTraceback("Recode.Request.scan", __pyx_clineno, __pyx_lineno, __pyx_f ilename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":604 /* "Recode.pyx":608
* raise error * raise error
* *
* def pair_sequence(self): # <<<<<<<<<<<<<< * def pair_sequence(self): # <<<<<<<<<<<<<<
* list = [] * list = []
* cdef recode_step step * cdef recode_step step
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_7Request_9pair_sequence(PyObject *__pyx_v_self , CYTHON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_6Recode_7Request_9pair_sequence(PyObject *__pyx_v_self , CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_6Recode_7Request_9pair_sequence(PyObject *__pyx_v_self , CYTHON_UNUSED PyObject *unused) { static PyObject *__pyx_pw_6Recode_7Request_9pair_sequence(PyObject *__pyx_v_self , CYTHON_UNUSED PyObject *unused) {
skipping to change at line 3069 skipping to change at line 3099
short __pyx_v_counter; short __pyx_v_counter;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
short __pyx_t_2; short __pyx_t_2;
PyObject *__pyx_t_3 = NULL; PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_4 = NULL;
int __pyx_t_5; int __pyx_t_5;
__Pyx_RefNannySetupContext("pair_sequence", 0); __Pyx_RefNannySetupContext("pair_sequence", 0);
/* "Recode.pyx":605 /* "Recode.pyx":609
* *
* def pair_sequence(self): * def pair_sequence(self):
* list = [] # <<<<<<<<<<<<<< * list = [] # <<<<<<<<<<<<<<
* cdef recode_step step * cdef recode_step step
* cdef short counter * cdef short counter
*/ */
__pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 605, __pyx_L 1_error) __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 609, __pyx_L 1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_v_list = ((PyObject*)__pyx_t_1); __pyx_v_list = ((PyObject*)__pyx_t_1);
__pyx_t_1 = 0; __pyx_t_1 = 0;
/* "Recode.pyx":608 /* "Recode.pyx":612
* cdef recode_step step * cdef recode_step step
* cdef short counter * cdef short counter
* for counter from 0 <= counter < self.request.sequence_length: # <<<<<<<<<<<<<< * for counter from 0 <= counter < self.request.sequence_length: # <<<<<<<<<<<<<<
* step = self.request.sequence_array[counter] * step = self.request.sequence_array[counter]
* list.append((step.before.name, step.after.name)) * list.append((step.before.name, step.after.name))
*/ */
__pyx_t_2 = __pyx_v_self->request->sequence_length; __pyx_t_2 = __pyx_v_self->request->sequence_length;
for (__pyx_v_counter = 0; __pyx_v_counter < __pyx_t_2; __pyx_v_counter++) { for (__pyx_v_counter = 0; __pyx_v_counter < __pyx_t_2; __pyx_v_counter++) {
/* "Recode.pyx":609 /* "Recode.pyx":613
* cdef short counter * cdef short counter
* for counter from 0 <= counter < self.request.sequence_length: * for counter from 0 <= counter < self.request.sequence_length:
* step = self.request.sequence_array[counter] # <<<<<<< <<<<<<< * step = self.request.sequence_array[counter] # <<<<<<< <<<<<<<
* list.append((step.before.name, step.after.name)) * list.append((step.before.name, step.after.name))
* return list * return list
*/ */
__pyx_v_step = (__pyx_v_self->request->sequence_array[__pyx_v_counter]); __pyx_v_step = (__pyx_v_self->request->sequence_array[__pyx_v_counter]);
/* "Recode.pyx":610 /* "Recode.pyx":614
* for counter from 0 <= counter < self.request.sequence_length: * for counter from 0 <= counter < self.request.sequence_length:
* step = self.request.sequence_array[counter] * step = self.request.sequence_array[counter]
* list.append((step.before.name, step.after.name)) # << <<<<<<<<<<<< * list.append((step.before.name, step.after.name)) # << <<<<<<<<<<<<
* return list * return list
* *
*/ */
__pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_step.before->name); if (unlikel y(!__pyx_t_1)) __PYX_ERR(1, 610, __pyx_L1_error) __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_step.before->name); if (unlikel y(!__pyx_t_1)) __PYX_ERR(1, 614, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_step.after->name); if (unlikely (!__pyx_t_3)) __PYX_ERR(1, 610, __pyx_L1_error) __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_step.after->name); if (unlikely (!__pyx_t_3)) __PYX_ERR(1, 614, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 610, __py x_L1_error) __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 614, __py x_L1_error)
__Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_4);
__Pyx_GIVEREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1);
__Pyx_GIVEREF(__pyx_t_3); __Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
__pyx_t_1 = 0; __pyx_t_1 = 0;
__pyx_t_3 = 0; __pyx_t_3 = 0;
__pyx_t_5 = __Pyx_PyList_Append(__pyx_v_list, __pyx_t_4); if (unlikely(__pyx _t_5 == ((int)-1))) __PYX_ERR(1, 610, __pyx_L1_error) __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_list, __pyx_t_4); if (unlikely(__pyx _t_5 == ((int)-1))) __PYX_ERR(1, 614, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
} }
/* "Recode.pyx":611 /* "Recode.pyx":615
* step = self.request.sequence_array[counter] * step = self.request.sequence_array[counter]
* list.append((step.before.name, step.after.name)) * list.append((step.before.name, step.after.name))
* return list # <<<<<<<<<<<<<< * return list # <<<<<<<<<<<<<<
* *
* def format_table(self, int language, char *charset): * def format_table(self, int language, char *charset):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_list); __Pyx_INCREF(__pyx_v_list);
__pyx_r = __pyx_v_list; __pyx_r = __pyx_v_list;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":604 /* "Recode.pyx":608
* raise error * raise error
* *
* def pair_sequence(self): # <<<<<<<<<<<<<< * def pair_sequence(self): # <<<<<<<<<<<<<<
* list = [] * list = []
* cdef recode_step step * cdef recode_step step
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
skipping to change at line 3157 skipping to change at line 3187
__Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("Recode.Request.pair_sequence", __pyx_clineno, __pyx_lineno , __pyx_filename); __Pyx_AddTraceback("Recode.Request.pair_sequence", __pyx_clineno, __pyx_lineno , __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XDECREF(__pyx_v_list); __Pyx_XDECREF(__pyx_v_list);
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":613 /* "Recode.pyx":617
* return list * return list
* *
* def format_table(self, int language, char *charset): # <<<<<< <<<<<<<< * def format_table(self, int language, char *charset): # <<<<<< <<<<<<<<
* cdef RECODE_OUTER outer * cdef RECODE_OUTER outer
* cdef bool saved * cdef bool saved
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_7Request_11format_table(PyObject *__pyx_v_self , PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ static PyObject *__pyx_pw_6Recode_7Request_11format_table(PyObject *__pyx_v_self , PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static PyObject *__pyx_pw_6Recode_7Request_11format_table(PyObject *__pyx_v_self , PyObject *__pyx_args, PyObject *__pyx_kwds) { static PyObject *__pyx_pw_6Recode_7Request_11format_table(PyObject *__pyx_v_self , PyObject *__pyx_args, PyObject *__pyx_kwds) {
skipping to change at line 3196 skipping to change at line 3226
} }
kw_args = PyDict_Size(__pyx_kwds); kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) { switch (pos_args) {
case 0: case 0:
if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_la nguage)) != 0)) kw_args--; if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_la nguage)) != 0)) kw_args--;
else goto __pyx_L5_argtuple_error; else goto __pyx_L5_argtuple_error;
CYTHON_FALLTHROUGH; CYTHON_FALLTHROUGH;
case 1: case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ch arset)) != 0)) kw_args--; if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_ch arset)) != 0)) kw_args--;
else { else {
__Pyx_RaiseArgtupleInvalid("format_table", 1, 2, 2, 1); __PYX_ERR(1, 6 13, __pyx_L3_error) __Pyx_RaiseArgtupleInvalid("format_table", 1, 2, 2, 1); __PYX_ERR(1, 6 17, __pyx_L3_error)
} }
} }
if (unlikely(kw_args > 0)) { if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "format_table") < 0)) __PYX_ERR(1, 613, __pyx_L3_error) if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "format_table") < 0)) __PYX_ERR(1, 617, __pyx_L3_error)
} }
} else if (PyTuple_GET_SIZE(__pyx_args) != 2) { } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
goto __pyx_L5_argtuple_error; goto __pyx_L5_argtuple_error;
} else { } else {
values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
values[1] = PyTuple_GET_ITEM(__pyx_args, 1); values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
} }
__pyx_v_language = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_lang __pyx_v_language = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_lang
uage == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 613, __pyx_L3_error) uage == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 617, __pyx_L3_error)
__pyx_v_charset = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely(( __pyx_v_charset = __Pyx_PyObject_AsWritableString(values[1]); if (unlikely((
!__pyx_v_charset) && PyErr_Occurred())) __PYX_ERR(1, 613, __pyx_L3_error) !__pyx_v_charset) && PyErr_Occurred())) __PYX_ERR(1, 617, __pyx_L3_error)
} }
goto __pyx_L4_argument_unpacking_done; goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:; __pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("format_table", 1, 2, 2, PyTuple_GET_SIZE(__pyx_arg s)); __PYX_ERR(1, 613, __pyx_L3_error) __Pyx_RaiseArgtupleInvalid("format_table", 1, 2, 2, PyTuple_GET_SIZE(__pyx_arg s)); __PYX_ERR(1, 617, __pyx_L3_error)
__pyx_L3_error:; __pyx_L3_error:;
__Pyx_AddTraceback("Recode.Request.format_table", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_AddTraceback("Recode.Request.format_table", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return NULL; return NULL;
__pyx_L4_argument_unpacking_done:; __pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_6Recode_7Request_10format_table(((struct __pyx_obj_6Recode_ Request *)__pyx_v_self), __pyx_v_language, __pyx_v_charset); __pyx_r = __pyx_pf_6Recode_7Request_10format_table(((struct __pyx_obj_6Recode_ Request *)__pyx_v_self), __pyx_v_language, __pyx_v_charset);
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
skipping to change at line 3238 skipping to change at line 3268
bool __pyx_v_saved; bool __pyx_v_saved;
bool __pyx_v_ok; bool __pyx_v_ok;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
RECODE_OUTER __pyx_t_1; RECODE_OUTER __pyx_t_1;
bool __pyx_t_2; bool __pyx_t_2;
int __pyx_t_3; int __pyx_t_3;
PyObject *__pyx_t_4 = NULL; PyObject *__pyx_t_4 = NULL;
__Pyx_RefNannySetupContext("format_table", 0); __Pyx_RefNannySetupContext("format_table", 0);
/* "Recode.pyx":616 /* "Recode.pyx":620
* cdef RECODE_OUTER outer * cdef RECODE_OUTER outer
* cdef bool saved * cdef bool saved
* outer = self.request.outer # <<<<<<<<<<<<<< * outer = self.request.outer # <<<<<<<<<<<<<<
* saved = outer.iconv_pivot.ignore * saved = outer.iconv_pivot.ignore
* outer.iconv_pivot.ignore = True * outer.iconv_pivot.ignore = True
*/ */
__pyx_t_1 = __pyx_v_self->request->outer; __pyx_t_1 = __pyx_v_self->request->outer;
__pyx_v_outer = __pyx_t_1; __pyx_v_outer = __pyx_t_1;
/* "Recode.pyx":617 /* "Recode.pyx":621
* cdef bool saved * cdef bool saved
* outer = self.request.outer * outer = self.request.outer
* saved = outer.iconv_pivot.ignore # <<<<<<<<<<<<<< * saved = outer.iconv_pivot.ignore # <<<<<<<<<<<<<<
* outer.iconv_pivot.ignore = True * outer.iconv_pivot.ignore = True
* ok = recode_format_table( * ok = recode_format_table(
*/ */
__pyx_t_2 = __pyx_v_outer->iconv_pivot->ignore; __pyx_t_2 = __pyx_v_outer->iconv_pivot->ignore;
__pyx_v_saved = __pyx_t_2; __pyx_v_saved = __pyx_t_2;
/* "Recode.pyx":618 /* "Recode.pyx":622
* outer = self.request.outer * outer = self.request.outer
* saved = outer.iconv_pivot.ignore * saved = outer.iconv_pivot.ignore
* outer.iconv_pivot.ignore = True # <<<<<<<<<<<<<< * outer.iconv_pivot.ignore = True # <<<<<<<<<<<<<<
* ok = recode_format_table( * ok = recode_format_table(
* self.request, <recode_programming_language> language, charset ) * self.request, <recode_programming_language> language, charset )
*/ */
__pyx_v_outer->iconv_pivot->ignore = 1; __pyx_v_outer->iconv_pivot->ignore = 1;
/* "Recode.pyx":619 /* "Recode.pyx":623
* saved = outer.iconv_pivot.ignore * saved = outer.iconv_pivot.ignore
* outer.iconv_pivot.ignore = True * outer.iconv_pivot.ignore = True
* ok = recode_format_table( # <<<<<<<<<<<<<< * ok = recode_format_table( # <<<<<<<<<<<<<<
* self.request, <recode_programming_language> language, charset ) * self.request, <recode_programming_language> language, charset )
* outer.iconv_pivot.ignore = saved * outer.iconv_pivot.ignore = saved
*/ */
__pyx_v_ok = recode_format_table(__pyx_v_self->request, ((enum recode_programm ing_language)__pyx_v_language), __pyx_v_charset); __pyx_v_ok = recode_format_table(__pyx_v_self->request, ((enum recode_programm ing_language)__pyx_v_language), __pyx_v_charset);
/* "Recode.pyx":621 /* "Recode.pyx":625
* ok = recode_format_table( * ok = recode_format_table(
* self.request, <recode_programming_language> language, charset ) * self.request, <recode_programming_language> language, charset )
* outer.iconv_pivot.ignore = saved # <<<<<<<<<<<<<< * outer.iconv_pivot.ignore = saved # <<<<<<<<<<<<<<
* if not ok: * if not ok:
* raise error * raise error
*/ */
__pyx_v_outer->iconv_pivot->ignore = __pyx_v_saved; __pyx_v_outer->iconv_pivot->ignore = __pyx_v_saved;
/* "Recode.pyx":622 /* "Recode.pyx":626
* self.request, <recode_programming_language> language, charset ) * self.request, <recode_programming_language> language, charset )
* outer.iconv_pivot.ignore = saved * outer.iconv_pivot.ignore = saved
* if not ok: # <<<<<<<<<<<<<< * if not ok: # <<<<<<<<<<<<<<
* raise error * raise error
* *
*/ */
__pyx_t_3 = ((!(__pyx_v_ok != 0)) != 0); __pyx_t_3 = ((!(__pyx_v_ok != 0)) != 0);
if (unlikely(__pyx_t_3)) { if (unlikely(__pyx_t_3)) {
/* "Recode.pyx":623 /* "Recode.pyx":627
* outer.iconv_pivot.ignore = saved * outer.iconv_pivot.ignore = saved
* if not ok: * if not ok:
* raise error # <<<<<<<<<<<<<< * raise error # <<<<<<<<<<<<<<
* *
* def string(self, text): * def string(self, text):
*/ */
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_error); if (unlikely(!__pyx_t _4)) __PYX_ERR(1, 623, __pyx_L1_error) __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_error); if (unlikely(!__pyx_t _4)) __PYX_ERR(1, 627, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_4);
__Pyx_Raise(__pyx_t_4, 0, 0, 0); __Pyx_Raise(__pyx_t_4, 0, 0, 0);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__PYX_ERR(1, 623, __pyx_L1_error) __PYX_ERR(1, 627, __pyx_L1_error)
/* "Recode.pyx":622 /* "Recode.pyx":626
* self.request, <recode_programming_language> language, charset ) * self.request, <recode_programming_language> language, charset )
* outer.iconv_pivot.ignore = saved * outer.iconv_pivot.ignore = saved
* if not ok: # <<<<<<<<<<<<<< * if not ok: # <<<<<<<<<<<<<<
* raise error * raise error
* *
*/ */
} }
/* "Recode.pyx":613 /* "Recode.pyx":617
* return list * return list
* *
* def format_table(self, int language, char *charset): # <<<<<< <<<<<<<< * def format_table(self, int language, char *charset): # <<<<<< <<<<<<<<
* cdef RECODE_OUTER outer * cdef RECODE_OUTER outer
* cdef bool saved * cdef bool saved
*/ */
/* function exit code */ /* function exit code */
__pyx_r = Py_None; __Pyx_INCREF(Py_None); __pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0; goto __pyx_L0;
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("Recode.Request.format_table", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_AddTraceback("Recode.Request.format_table", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":625 /* "Recode.pyx":629
* raise error * raise error
* *
* def string(self, text): # <<<<<<<<<<<<<< * def string(self, text): # <<<<<<<<<<<<<<
* cdef char *input = text * cdef char *input = text
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_7Request_13string(PyObject *__pyx_v_self, PyOb ject *__pyx_v_text); /*proto*/ static PyObject *__pyx_pw_6Recode_7Request_13string(PyObject *__pyx_v_self, PyOb ject *__pyx_v_text); /*proto*/
static PyObject *__pyx_pw_6Recode_7Request_13string(PyObject *__pyx_v_self, PyOb ject *__pyx_v_text) { static PyObject *__pyx_pw_6Recode_7Request_13string(PyObject *__pyx_v_self, PyOb ject *__pyx_v_text) {
skipping to change at line 3385 skipping to change at line 3415
int __pyx_t_7; int __pyx_t_7;
char const *__pyx_t_8; char const *__pyx_t_8;
PyObject *__pyx_t_9 = NULL; PyObject *__pyx_t_9 = NULL;
PyObject *__pyx_t_10 = NULL; PyObject *__pyx_t_10 = NULL;
PyObject *__pyx_t_11 = NULL; PyObject *__pyx_t_11 = NULL;
PyObject *__pyx_t_12 = NULL; PyObject *__pyx_t_12 = NULL;
PyObject *__pyx_t_13 = NULL; PyObject *__pyx_t_13 = NULL;
PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_14 = NULL;
__Pyx_RefNannySetupContext("string", 0); __Pyx_RefNannySetupContext("string", 0);
/* "Recode.pyx":626 /* "Recode.pyx":630
* *
* def string(self, text): * def string(self, text):
* cdef char *input = text # <<<<<<<<<<<<<< * cdef char *input = text # <<<<<<<<<<<<<<
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
* cdef char *output = NULL * cdef char *output = NULL
*/ */
__pyx_t_1 = __Pyx_PyObject_AsWritableString(__pyx_v_text); if (unlikely((!__py x_t_1) && PyErr_Occurred())) __PYX_ERR(1, 626, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_AsWritableString(__pyx_v_text); if (unlikely((!__py x_t_1) && PyErr_Occurred())) __PYX_ERR(1, 630, __pyx_L1_error)
__pyx_v_input = __pyx_t_1; __pyx_v_input = __pyx_t_1;
/* "Recode.pyx":627 /* "Recode.pyx":631
* def string(self, text): * def string(self, text):
* cdef char *input = text * cdef char *input = text
* cdef size_t input_len = len(text) # <<<<<<<<<<<<<< * cdef size_t input_len = len(text) # <<<<<<<<<<<<<<
* cdef char *output = NULL * cdef char *output = NULL
* cdef size_t output_len * cdef size_t output_len
*/ */
__pyx_t_2 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_2 == ((Py_ssiz e_t)-1))) __PYX_ERR(1, 627, __pyx_L1_error) __pyx_t_2 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_2 == ((Py_ssiz e_t)-1))) __PYX_ERR(1, 631, __pyx_L1_error)
__pyx_v_input_len = __pyx_t_2; __pyx_v_input_len = __pyx_t_2;
/* "Recode.pyx":628 /* "Recode.pyx":632
* cdef char *input = text * cdef char *input = text
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
* cdef char *output = NULL # <<<<<<<<<<<<<< * cdef char *output = NULL # <<<<<<<<<<<<<<
* cdef size_t output_len * cdef size_t output_len
* cdef size_t output_allocated = 0 * cdef size_t output_allocated = 0
*/ */
__pyx_v_output = NULL; __pyx_v_output = NULL;
/* "Recode.pyx":630 /* "Recode.pyx":634
* cdef char *output = NULL * cdef char *output = NULL
* cdef size_t output_len * cdef size_t output_len
* cdef size_t output_allocated = 0 # <<<<<<<<<<<<<< * cdef size_t output_allocated = 0 # <<<<<<<<<<<<<<
* result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated) * result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated)
* if result is False or output is NULL: * if result is False or output is NULL:
*/ */
__pyx_v_output_allocated = 0; __pyx_v_output_allocated = 0;
/* "Recode.pyx":631 /* "Recode.pyx":635
* cdef size_t output_len * cdef size_t output_len
* cdef size_t output_allocated = 0 * cdef size_t output_allocated = 0
* result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated) # <<<<<<<<<<<<<< * result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated) # <<<<<<<<<<<<<<
* if result is False or output is NULL: * if result is False or output is NULL:
* raise error * raise error
*/ */
__pyx_v_result = recode_buffer_to_buffer(__pyx_v_self->request, __pyx_v_input, __pyx_v_input_len, (&__pyx_v_output), (&__pyx_v_output_len), (&__pyx_v_output_a llocated)); __pyx_v_result = recode_buffer_to_buffer(__pyx_v_self->request, __pyx_v_input, __pyx_v_input_len, (&__pyx_v_output), (&__pyx_v_output_len), (&__pyx_v_output_a llocated));
/* "Recode.pyx":632 /* "Recode.pyx":636
* cdef size_t output_allocated = 0 * cdef size_t output_allocated = 0
* result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated) * result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated)
* if result is False or output is NULL: # <<<<<<<<<<<<<< * if result is False or output is NULL: # <<<<<<<<<<<<<<
* raise error * raise error
* try: * try:
*/ */
__pyx_t_4 = ((__pyx_v_result == 0) != 0); __pyx_t_4 = ((__pyx_v_result == 0) != 0);
if (!__pyx_t_4) { if (!__pyx_t_4) {
} else { } else {
__pyx_t_3 = __pyx_t_4; __pyx_t_3 = __pyx_t_4;
goto __pyx_L4_bool_binop_done; goto __pyx_L4_bool_binop_done;
} }
__pyx_t_4 = ((__pyx_v_output == NULL) != 0); __pyx_t_4 = ((__pyx_v_output == NULL) != 0);
__pyx_t_3 = __pyx_t_4; __pyx_t_3 = __pyx_t_4;
__pyx_L4_bool_binop_done:; __pyx_L4_bool_binop_done:;
if (unlikely(__pyx_t_3)) { if (unlikely(__pyx_t_3)) {
/* "Recode.pyx":633 /* "Recode.pyx":637
* result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated) * result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated)
* if result is False or output is NULL: * if result is False or output is NULL:
* raise error # <<<<<<<<<<<<<< * raise error # <<<<<<<<<<<<<<
* try: * try:
* py_string = output[:output_len] * py_string = output[:output_len]
*/ */
__Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_error); if (unlikely(!__pyx_t _5)) __PYX_ERR(1, 633, __pyx_L1_error) __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_error); if (unlikely(!__pyx_t _5)) __PYX_ERR(1, 637, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_5);
__Pyx_Raise(__pyx_t_5, 0, 0, 0); __Pyx_Raise(__pyx_t_5, 0, 0, 0);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__PYX_ERR(1, 633, __pyx_L1_error) __PYX_ERR(1, 637, __pyx_L1_error)
/* "Recode.pyx":632 /* "Recode.pyx":636
* cdef size_t output_allocated = 0 * cdef size_t output_allocated = 0
* result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated) * result = recode_buffer_to_buffer(self.request, input, input_len, &out put, &output_len, &output_allocated)
* if result is False or output is NULL: # <<<<<<<<<<<<<< * if result is False or output is NULL: # <<<<<<<<<<<<<<
* raise error * raise error
* try: * try:
*/ */
} }
/* "Recode.pyx":634 /* "Recode.pyx":638
* if result is False or output is NULL: * if result is False or output is NULL:
* raise error * raise error
* try: # <<<<<<<<<<<<<< * try: # <<<<<<<<<<<<<<
* py_string = output[:output_len] * py_string = output[:output_len]
* finally: * finally:
*/ */
/*try:*/ { /*try:*/ {
/* "Recode.pyx":635 /* "Recode.pyx":639
* raise error * raise error
* try: * try:
* py_string = output[:output_len] # <<<<<<<<<<<<<< * py_string = output[:output_len] # <<<<<<<<<<<<<<
* finally: * finally:
* free (output) * free (output)
*/ */
__pyx_t_5 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_output + 0, __pyx_v_outp ut_len - 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 635, __pyx_L7_error) __pyx_t_5 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_output + 0, __pyx_v_outp ut_len - 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 639, __pyx_L7_error)
__Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_5);
__pyx_v_py_string = ((PyObject*)__pyx_t_5); __pyx_v_py_string = ((PyObject*)__pyx_t_5);
__pyx_t_5 = 0; __pyx_t_5 = 0;
} }
/* "Recode.pyx":637 /* "Recode.pyx":641
* py_string = output[:output_len] * py_string = output[:output_len]
* finally: * finally:
* free (output) # <<<<<<<<<<<<<< * free (output) # <<<<<<<<<<<<<<
* return py_string * return py_string
* *
*/ */
/*finally:*/ { /*finally:*/ {
/*normal exit:*/{ /*normal exit:*/{
free(__pyx_v_output); free(__pyx_v_output);
goto __pyx_L8; goto __pyx_L8;
skipping to change at line 3541 skipping to change at line 3571
__Pyx_XGIVEREF(__pyx_t_10); __Pyx_XGIVEREF(__pyx_t_10);
__Pyx_XGIVEREF(__pyx_t_11); __Pyx_XGIVEREF(__pyx_t_11);
__Pyx_ErrRestore(__pyx_t_9, __pyx_t_10, __pyx_t_11); __Pyx_ErrRestore(__pyx_t_9, __pyx_t_10, __pyx_t_11);
__pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0; __pyx_t_9 = 0; __pyx_t_10 = 0; __pyx_t_11 = 0; __pyx_t_12 = 0; __pyx_t_13 = 0; __pyx_t_14 = 0;
__pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_7; __pyx_filename = __py x_t_8; __pyx_lineno = __pyx_t_6; __pyx_clineno = __pyx_t_7; __pyx_filename = __py x_t_8;
goto __pyx_L1_error; goto __pyx_L1_error;
} }
__pyx_L8:; __pyx_L8:;
} }
/* "Recode.pyx":638 /* "Recode.pyx":642
* finally: * finally:
* free (output) * free (output)
* return py_string # <<<<<<<<<<<<<< * return py_string # <<<<<<<<<<<<<<
* *
* # Unexposed APIs: * # Unexposed APIs:
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_py_string); __Pyx_INCREF(__pyx_v_py_string);
__pyx_r = __pyx_v_py_string; __pyx_r = __pyx_v_py_string;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":625 /* "Recode.pyx":629
* raise error * raise error
* *
* def string(self, text): # <<<<<<<<<<<<<< * def string(self, text): # <<<<<<<<<<<<<<
* cdef char *input = text * cdef char *input = text
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_5);
skipping to change at line 3680 skipping to change at line 3710
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Request.__setstate_cython__", __pyx_clineno, __pyx_ lineno, __pyx_filename); __Pyx_AddTraceback("Recode.Request.__setstate_cython__", __pyx_clineno, __pyx_ lineno, __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":667 /* "Recode.pyx":671
* cdef RECODE_TASK task * cdef RECODE_TASK task
* *
* def __init__(self, Request request): # <<<<<<<<<<<<<< * def __init__(self, Request request): # <<<<<<<<<<<<<<
* self.task = recode_new_task(request.request) * self.task = recode_new_task(request.request)
* *
*/ */
/* Python wrapper */ /* Python wrapper */
static int __pyx_pw_6Recode_4Task_1__init__(PyObject *__pyx_v_self, PyObject *__ pyx_args, PyObject *__pyx_kwds); /*proto*/ static int __pyx_pw_6Recode_4Task_1__init__(PyObject *__pyx_v_self, PyObject *__ pyx_args, PyObject *__pyx_kwds); /*proto*/
static int __pyx_pw_6Recode_4Task_1__init__(PyObject *__pyx_v_self, PyObject *__ pyx_args, PyObject *__pyx_kwds) { static int __pyx_pw_6Recode_4Task_1__init__(PyObject *__pyx_v_self, PyObject *__ pyx_args, PyObject *__pyx_kwds) {
skipping to change at line 3714 skipping to change at line 3744
case 0: break; case 0: break;
default: goto __pyx_L5_argtuple_error; default: goto __pyx_L5_argtuple_error;
} }
kw_args = PyDict_Size(__pyx_kwds); kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) { switch (pos_args) {
case 0: case 0:
if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_re quest)) != 0)) kw_args--; if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_re quest)) != 0)) kw_args--;
else goto __pyx_L5_argtuple_error; else goto __pyx_L5_argtuple_error;
} }
if (unlikely(kw_args > 0)) { if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "__init__") < 0)) __PYX_ERR(1, 667, __pyx_L3_error) if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0 , values, pos_args, "__init__") < 0)) __PYX_ERR(1, 671, __pyx_L3_error)
} }
} else if (PyTuple_GET_SIZE(__pyx_args) != 1) { } else if (PyTuple_GET_SIZE(__pyx_args) != 1) {
goto __pyx_L5_argtuple_error; goto __pyx_L5_argtuple_error;
} else { } else {
values[0] = PyTuple_GET_ITEM(__pyx_args, 0); values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
} }
__pyx_v_request = ((struct __pyx_obj_6Recode_Request *)values[0]); __pyx_v_request = ((struct __pyx_obj_6Recode_Request *)values[0]);
} }
goto __pyx_L4_argument_unpacking_done; goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:; __pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 667, __pyx_L3_error) __Pyx_RaiseArgtupleInvalid("__init__", 1, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 671, __pyx_L3_error)
__pyx_L3_error:; __pyx_L3_error:;
__Pyx_AddTraceback("Recode.Task.__init__", __pyx_clineno, __pyx_lineno, __pyx_ filename); __Pyx_AddTraceback("Recode.Task.__init__", __pyx_clineno, __pyx_lineno, __pyx_ filename);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return -1; return -1;
__pyx_L4_argument_unpacking_done:; __pyx_L4_argument_unpacking_done:;
if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_request), __pyx_ptype_6Re code_Request, 1, "request", 0))) __PYX_ERR(1, 667, __pyx_L1_error) if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_request), __pyx_ptype_6Re code_Request, 1, "request", 0))) __PYX_ERR(1, 671, __pyx_L1_error)
__pyx_r = __pyx_pf_6Recode_4Task___init__(((struct __pyx_obj_6Recode_Task *)__ pyx_v_self), __pyx_v_request); __pyx_r = __pyx_pf_6Recode_4Task___init__(((struct __pyx_obj_6Recode_Task *)__ pyx_v_self), __pyx_v_request);
/* function exit code */ /* function exit code */
goto __pyx_L0; goto __pyx_L0;
__pyx_L1_error:; __pyx_L1_error:;
__pyx_r = -1; __pyx_r = -1;
__pyx_L0:; __pyx_L0:;
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
static int __pyx_pf_6Recode_4Task___init__(struct __pyx_obj_6Recode_Task *__pyx_ v_self, struct __pyx_obj_6Recode_Request *__pyx_v_request) { static int __pyx_pf_6Recode_4Task___init__(struct __pyx_obj_6Recode_Task *__pyx_ v_self, struct __pyx_obj_6Recode_Request *__pyx_v_request) {
int __pyx_r; int __pyx_r;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__init__", 0); __Pyx_RefNannySetupContext("__init__", 0);
/* "Recode.pyx":668 /* "Recode.pyx":672
* *
* def __init__(self, Request request): * def __init__(self, Request request):
* self.task = recode_new_task(request.request) # <<<<<<<<<< <<<< * self.task = recode_new_task(request.request) # <<<<<<<<<< <<<<
* *
* def __dealloc__(self): * def __dealloc__(self):
*/ */
__pyx_v_self->task = recode_new_task(__pyx_v_request->request); __pyx_v_self->task = recode_new_task(__pyx_v_request->request);
/* "Recode.pyx":667 /* "Recode.pyx":671
* cdef RECODE_TASK task * cdef RECODE_TASK task
* *
* def __init__(self, Request request): # <<<<<<<<<<<<<< * def __init__(self, Request request): # <<<<<<<<<<<<<<
* self.task = recode_new_task(request.request) * self.task = recode_new_task(request.request)
* *
*/ */
/* function exit code */ /* function exit code */
__pyx_r = 0; __pyx_r = 0;
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":670 /* "Recode.pyx":674
* self.task = recode_new_task(request.request) * self.task = recode_new_task(request.request)
* *
* def __dealloc__(self): # <<<<<<<<<<<<<< * def __dealloc__(self): # <<<<<<<<<<<<<<
* free (self.task.output.buffer) * free (self.task.output.buffer)
* recode_delete_task(self.task) * recode_delete_task(self.task)
*/ */
/* Python wrapper */ /* Python wrapper */
static void __pyx_pw_6Recode_4Task_3__dealloc__(PyObject *__pyx_v_self); /*proto */ static void __pyx_pw_6Recode_4Task_3__dealloc__(PyObject *__pyx_v_self); /*proto */
static void __pyx_pw_6Recode_4Task_3__dealloc__(PyObject *__pyx_v_self) { static void __pyx_pw_6Recode_4Task_3__dealloc__(PyObject *__pyx_v_self) {
skipping to change at line 3794 skipping to change at line 3824
__pyx_pf_6Recode_4Task_2__dealloc__(((struct __pyx_obj_6Recode_Task *)__pyx_v_ self)); __pyx_pf_6Recode_4Task_2__dealloc__(((struct __pyx_obj_6Recode_Task *)__pyx_v_ self));
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
} }
static void __pyx_pf_6Recode_4Task_2__dealloc__(struct __pyx_obj_6Recode_Task *_ _pyx_v_self) { static void __pyx_pf_6Recode_4Task_2__dealloc__(struct __pyx_obj_6Recode_Task *_ _pyx_v_self) {
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__dealloc__", 0); __Pyx_RefNannySetupContext("__dealloc__", 0);
/* "Recode.pyx":671 /* "Recode.pyx":675
* *
* def __dealloc__(self): * def __dealloc__(self):
* free (self.task.output.buffer) # <<<<<<<<<<<<<< * free (self.task.output.buffer) # <<<<<<<<<<<<<<
* recode_delete_task(self.task) * recode_delete_task(self.task)
* *
*/ */
free(__pyx_v_self->task->output.buffer); free(__pyx_v_self->task->output.buffer);
/* "Recode.pyx":672 /* "Recode.pyx":676
* def __dealloc__(self): * def __dealloc__(self):
* free (self.task.output.buffer) * free (self.task.output.buffer)
* recode_delete_task(self.task) # <<<<<<<<<<<<<< * recode_delete_task(self.task) # <<<<<<<<<<<<<<
* *
* def set_byte_order_mark(self, flag): * def set_byte_order_mark(self, flag):
*/ */
(void)(recode_delete_task(__pyx_v_self->task)); (void)(recode_delete_task(__pyx_v_self->task));
/* "Recode.pyx":670 /* "Recode.pyx":674
* self.task = recode_new_task(request.request) * self.task = recode_new_task(request.request)
* *
* def __dealloc__(self): # <<<<<<<<<<<<<< * def __dealloc__(self): # <<<<<<<<<<<<<<
* free (self.task.output.buffer) * free (self.task.output.buffer)
* recode_delete_task(self.task) * recode_delete_task(self.task)
*/ */
/* function exit code */ /* function exit code */
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
} }
/* "Recode.pyx":674 /* "Recode.pyx":678
* recode_delete_task(self.task) * recode_delete_task(self.task)
* *
* def set_byte_order_mark(self, flag): # <<<<<<<<<<<<<< * def set_byte_order_mark(self, flag): # <<<<<<<<<<<<<<
* previous = self.task.byte_order_mark != 0 * previous = self.task.byte_order_mark != 0
* self.task.byte_order_mark = int(flag) * self.task.byte_order_mark = int(flag)
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_4Task_5set_byte_order_mark(PyObject *__pyx_v_s elf, PyObject *__pyx_v_flag); /*proto*/ static PyObject *__pyx_pw_6Recode_4Task_5set_byte_order_mark(PyObject *__pyx_v_s elf, PyObject *__pyx_v_flag); /*proto*/
static PyObject *__pyx_pw_6Recode_4Task_5set_byte_order_mark(PyObject *__pyx_v_s elf, PyObject *__pyx_v_flag) { static PyObject *__pyx_pw_6Recode_4Task_5set_byte_order_mark(PyObject *__pyx_v_s elf, PyObject *__pyx_v_flag) {
skipping to change at line 3853 skipping to change at line 3883
} }
static PyObject *__pyx_pf_6Recode_4Task_4set_byte_order_mark(struct __pyx_obj_6R ecode_Task *__pyx_v_self, PyObject *__pyx_v_flag) { static PyObject *__pyx_pf_6Recode_4Task_4set_byte_order_mark(struct __pyx_obj_6R ecode_Task *__pyx_v_self, PyObject *__pyx_v_flag) {
PyObject *__pyx_v_previous = NULL; PyObject *__pyx_v_previous = NULL;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
bool __pyx_t_2; bool __pyx_t_2;
__Pyx_RefNannySetupContext("set_byte_order_mark", 0); __Pyx_RefNannySetupContext("set_byte_order_mark", 0);
/* "Recode.pyx":675 /* "Recode.pyx":679
* *
* def set_byte_order_mark(self, flag): * def set_byte_order_mark(self, flag):
* previous = self.task.byte_order_mark != 0 # <<<<<<<<<<<<< < * previous = self.task.byte_order_mark != 0 # <<<<<<<<<<<<< <
* self.task.byte_order_mark = int(flag) * self.task.byte_order_mark = int(flag)
* return previous * return previous
*/ */
__pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->task->byte_order_mark != 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 675, __pyx_L1_error) __pyx_t_1 = __Pyx_PyBool_FromLong((__pyx_v_self->task->byte_order_mark != 0)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 679, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_v_previous = __pyx_t_1; __pyx_v_previous = __pyx_t_1;
__pyx_t_1 = 0; __pyx_t_1 = 0;
/* "Recode.pyx":676 /* "Recode.pyx":680
* def set_byte_order_mark(self, flag): * def set_byte_order_mark(self, flag):
* previous = self.task.byte_order_mark != 0 * previous = self.task.byte_order_mark != 0
* self.task.byte_order_mark = int(flag) # <<<<<<<<<<<<<< * self.task.byte_order_mark = int(flag) # <<<<<<<<<<<<<<
* return previous * return previous
* *
*/ */
__pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_flag); if (unlikely(!__pyx_t_1)) __PYX_ ERR(1, 676, __pyx_L1_error) __pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_flag); if (unlikely(!__pyx_t_1)) __PYX_ ERR(1, 680, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == ((boo l)-1)) && PyErr_Occurred())) __PYX_ERR(1, 676, __pyx_L1_error) __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_2 == ((boo l)-1)) && PyErr_Occurred())) __PYX_ERR(1, 680, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_self->task->byte_order_mark = __pyx_t_2; __pyx_v_self->task->byte_order_mark = __pyx_t_2;
/* "Recode.pyx":677 /* "Recode.pyx":681
* previous = self.task.byte_order_mark != 0 * previous = self.task.byte_order_mark != 0
* self.task.byte_order_mark = int(flag) * self.task.byte_order_mark = int(flag)
* return previous # <<<<<<<<<<<<<< * return previous # <<<<<<<<<<<<<<
* *
* def get_error(self): * def get_error(self):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_previous); __Pyx_INCREF(__pyx_v_previous);
__pyx_r = __pyx_v_previous; __pyx_r = __pyx_v_previous;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":674 /* "Recode.pyx":678
* recode_delete_task(self.task) * recode_delete_task(self.task)
* *
* def set_byte_order_mark(self, flag): # <<<<<<<<<<<<<< * def set_byte_order_mark(self, flag): # <<<<<<<<<<<<<<
* previous = self.task.byte_order_mark != 0 * previous = self.task.byte_order_mark != 0
* self.task.byte_order_mark = int(flag) * self.task.byte_order_mark = int(flag)
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Task.set_byte_order_mark", __pyx_clineno, __pyx_lin eno, __pyx_filename); __Pyx_AddTraceback("Recode.Task.set_byte_order_mark", __pyx_clineno, __pyx_lin eno, __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XDECREF(__pyx_v_previous); __Pyx_XDECREF(__pyx_v_previous);
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":679 /* "Recode.pyx":683
* return previous * return previous
* *
* def get_error(self): # <<<<<<<<<<<<<< * def get_error(self): # <<<<<<<<<<<<<<
* return self.task.error_so_far * return self.task.error_so_far
* *
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_4Task_7get_error(PyObject *__pyx_v_self, CYTHO N_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_6Recode_4Task_7get_error(PyObject *__pyx_v_self, CYTHO N_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_6Recode_4Task_7get_error(PyObject *__pyx_v_self, CYTHO N_UNUSED PyObject *unused) { static PyObject *__pyx_pw_6Recode_4Task_7get_error(PyObject *__pyx_v_self, CYTHO N_UNUSED PyObject *unused) {
skipping to change at line 3937 skipping to change at line 3967
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
static PyObject *__pyx_pf_6Recode_4Task_6get_error(struct __pyx_obj_6Recode_Task *__pyx_v_self) { static PyObject *__pyx_pf_6Recode_4Task_6get_error(struct __pyx_obj_6Recode_Task *__pyx_v_self) {
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("get_error", 0); __Pyx_RefNannySetupContext("get_error", 0);
/* "Recode.pyx":680 /* "Recode.pyx":684
* *
* def get_error(self): * def get_error(self):
* return self.task.error_so_far # <<<<<<<<<<<<<< * return self.task.error_so_far # <<<<<<<<<<<<<<
* *
* def set_fail_level(self, fail_level): * def set_fail_level(self, fail_level):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(__pyx_v_self->task->error_so_f ar); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 680, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(__pyx_v_self->task->error_so_f ar); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 684, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1; __pyx_r = __pyx_t_1;
__pyx_t_1 = 0; __pyx_t_1 = 0;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":679 /* "Recode.pyx":683
* return previous * return previous
* *
* def get_error(self): # <<<<<<<<<<<<<< * def get_error(self): # <<<<<<<<<<<<<<
* return self.task.error_so_far * return self.task.error_so_far
* *
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Task.get_error", __pyx_clineno, __pyx_lineno, __pyx _filename); __Pyx_AddTraceback("Recode.Task.get_error", __pyx_clineno, __pyx_lineno, __pyx _filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":682 /* "Recode.pyx":686
* return self.task.error_so_far * return self.task.error_so_far
* *
* def set_fail_level(self, fail_level): # <<<<<<<<<<<<<< * def set_fail_level(self, fail_level): # <<<<<<<<<<<<<<
* previous = self.task.fail_level * previous = self.task.fail_level
* self.task.fail_level = fail_level * self.task.fail_level = fail_level
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_4Task_9set_fail_level(PyObject *__pyx_v_self, PyObject *__pyx_v_fail_level); /*proto*/ static PyObject *__pyx_pw_6Recode_4Task_9set_fail_level(PyObject *__pyx_v_self, PyObject *__pyx_v_fail_level); /*proto*/
static PyObject *__pyx_pw_6Recode_4Task_9set_fail_level(PyObject *__pyx_v_self, PyObject *__pyx_v_fail_level) { static PyObject *__pyx_pw_6Recode_4Task_9set_fail_level(PyObject *__pyx_v_self, PyObject *__pyx_v_fail_level) {
skipping to change at line 3999 skipping to change at line 4029
} }
static PyObject *__pyx_pf_6Recode_4Task_8set_fail_level(struct __pyx_obj_6Recode _Task *__pyx_v_self, PyObject *__pyx_v_fail_level) { static PyObject *__pyx_pf_6Recode_4Task_8set_fail_level(struct __pyx_obj_6Recode _Task *__pyx_v_self, PyObject *__pyx_v_fail_level) {
enum recode_error __pyx_v_previous; enum recode_error __pyx_v_previous;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
enum recode_error __pyx_t_1; enum recode_error __pyx_t_1;
PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("set_fail_level", 0); __Pyx_RefNannySetupContext("set_fail_level", 0);
/* "Recode.pyx":683 /* "Recode.pyx":687
* *
* def set_fail_level(self, fail_level): * def set_fail_level(self, fail_level):
* previous = self.task.fail_level # <<<<<<<<<<<<<< * previous = self.task.fail_level # <<<<<<<<<<<<<<
* self.task.fail_level = fail_level * self.task.fail_level = fail_level
* return previous * return previous
*/ */
__pyx_t_1 = __pyx_v_self->task->fail_level; __pyx_t_1 = __pyx_v_self->task->fail_level;
__pyx_v_previous = __pyx_t_1; __pyx_v_previous = __pyx_t_1;
/* "Recode.pyx":684 /* "Recode.pyx":688
* def set_fail_level(self, fail_level): * def set_fail_level(self, fail_level):
* previous = self.task.fail_level * previous = self.task.fail_level
* self.task.fail_level = fail_level # <<<<<<<<<<<<<< * self.task.fail_level = fail_level # <<<<<<<<<<<<<<
* return previous * return previous
* *
*/ */
__pyx_t_1 = ((enum recode_error)__Pyx_PyInt_As_enum__recode_error(__pyx_v_fail _level)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 684, __pyx_L1_error) __pyx_t_1 = ((enum recode_error)__Pyx_PyInt_As_enum__recode_error(__pyx_v_fail _level)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 688, __pyx_L1_error)
__pyx_v_self->task->fail_level = __pyx_t_1; __pyx_v_self->task->fail_level = __pyx_t_1;
/* "Recode.pyx":685 /* "Recode.pyx":689
* previous = self.task.fail_level * previous = self.task.fail_level
* self.task.fail_level = fail_level * self.task.fail_level = fail_level
* return previous # <<<<<<<<<<<<<< * return previous # <<<<<<<<<<<<<<
* *
* def set_abort_level(self, abort_level): * def set_abort_level(self, abort_level):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyInt_From_enum__recode_error(__pyx_v_previous); if (unlikel y(!__pyx_t_2)) __PYX_ERR(1, 685, __pyx_L1_error) __pyx_t_2 = __Pyx_PyInt_From_enum__recode_error(__pyx_v_previous); if (unlikel y(!__pyx_t_2)) __PYX_ERR(1, 689, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2; __pyx_r = __pyx_t_2;
__pyx_t_2 = 0; __pyx_t_2 = 0;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":682 /* "Recode.pyx":686
* return self.task.error_so_far * return self.task.error_so_far
* *
* def set_fail_level(self, fail_level): # <<<<<<<<<<<<<< * def set_fail_level(self, fail_level): # <<<<<<<<<<<<<<
* previous = self.task.fail_level * previous = self.task.fail_level
* self.task.fail_level = fail_level * self.task.fail_level = fail_level
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_2);
__Pyx_AddTraceback("Recode.Task.set_fail_level", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_AddTraceback("Recode.Task.set_fail_level", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":687 /* "Recode.pyx":691
* return previous * return previous
* *
* def set_abort_level(self, abort_level): # <<<<<<<<<<<<<< * def set_abort_level(self, abort_level): # <<<<<<<<<<<<<<
* previous = self.task.abort_level * previous = self.task.abort_level
* self.task.abort_level = abort_level * self.task.abort_level = abort_level
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_4Task_11set_abort_level(PyObject *__pyx_v_self , PyObject *__pyx_v_abort_level); /*proto*/ static PyObject *__pyx_pw_6Recode_4Task_11set_abort_level(PyObject *__pyx_v_self , PyObject *__pyx_v_abort_level); /*proto*/
static PyObject *__pyx_pw_6Recode_4Task_11set_abort_level(PyObject *__pyx_v_self , PyObject *__pyx_v_abort_level) { static PyObject *__pyx_pw_6Recode_4Task_11set_abort_level(PyObject *__pyx_v_self , PyObject *__pyx_v_abort_level) {
skipping to change at line 4081 skipping to change at line 4111
} }
static PyObject *__pyx_pf_6Recode_4Task_10set_abort_level(struct __pyx_obj_6Reco de_Task *__pyx_v_self, PyObject *__pyx_v_abort_level) { static PyObject *__pyx_pf_6Recode_4Task_10set_abort_level(struct __pyx_obj_6Reco de_Task *__pyx_v_self, PyObject *__pyx_v_abort_level) {
enum recode_error __pyx_v_previous; enum recode_error __pyx_v_previous;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
enum recode_error __pyx_t_1; enum recode_error __pyx_t_1;
PyObject *__pyx_t_2 = NULL; PyObject *__pyx_t_2 = NULL;
__Pyx_RefNannySetupContext("set_abort_level", 0); __Pyx_RefNannySetupContext("set_abort_level", 0);
/* "Recode.pyx":688 /* "Recode.pyx":692
* *
* def set_abort_level(self, abort_level): * def set_abort_level(self, abort_level):
* previous = self.task.abort_level # <<<<<<<<<<<<<< * previous = self.task.abort_level # <<<<<<<<<<<<<<
* self.task.abort_level = abort_level * self.task.abort_level = abort_level
* return previous * return previous
*/ */
__pyx_t_1 = __pyx_v_self->task->abort_level; __pyx_t_1 = __pyx_v_self->task->abort_level;
__pyx_v_previous = __pyx_t_1; __pyx_v_previous = __pyx_t_1;
/* "Recode.pyx":689 /* "Recode.pyx":693
* def set_abort_level(self, abort_level): * def set_abort_level(self, abort_level):
* previous = self.task.abort_level * previous = self.task.abort_level
* self.task.abort_level = abort_level # <<<<<<<<<<<<<< * self.task.abort_level = abort_level # <<<<<<<<<<<<<<
* return previous * return previous
* *
*/ */
__pyx_t_1 = ((enum recode_error)__Pyx_PyInt_As_enum__recode_error(__pyx_v_abor t_level)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 689, __pyx_L1_error) __pyx_t_1 = ((enum recode_error)__Pyx_PyInt_As_enum__recode_error(__pyx_v_abor t_level)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 693, __pyx_L1_error)
__pyx_v_self->task->abort_level = __pyx_t_1; __pyx_v_self->task->abort_level = __pyx_t_1;
/* "Recode.pyx":690 /* "Recode.pyx":694
* previous = self.task.abort_level * previous = self.task.abort_level
* self.task.abort_level = abort_level * self.task.abort_level = abort_level
* return previous # <<<<<<<<<<<<<< * return previous # <<<<<<<<<<<<<<
* *
* def set_input(self, text): * def set_input(self, text):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__pyx_t_2 = __Pyx_PyInt_From_enum__recode_error(__pyx_v_previous); if (unlikel y(!__pyx_t_2)) __PYX_ERR(1, 690, __pyx_L1_error) __pyx_t_2 = __Pyx_PyInt_From_enum__recode_error(__pyx_v_previous); if (unlikel y(!__pyx_t_2)) __PYX_ERR(1, 694, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_2);
__pyx_r = __pyx_t_2; __pyx_r = __pyx_t_2;
__pyx_t_2 = 0; __pyx_t_2 = 0;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":687 /* "Recode.pyx":691
* return previous * return previous
* *
* def set_abort_level(self, abort_level): # <<<<<<<<<<<<<< * def set_abort_level(self, abort_level): # <<<<<<<<<<<<<<
* previous = self.task.abort_level * previous = self.task.abort_level
* self.task.abort_level = abort_level * self.task.abort_level = abort_level
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_2);
__Pyx_AddTraceback("Recode.Task.set_abort_level", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_AddTraceback("Recode.Task.set_abort_level", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":692 /* "Recode.pyx":696
* return previous * return previous
* *
* def set_input(self, text): # <<<<<<<<<<<<<< * def set_input(self, text): # <<<<<<<<<<<<<<
* cdef char *input = text * cdef char *input = text
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_4Task_13set_input(PyObject *__pyx_v_self, PyOb ject *__pyx_v_text); /*proto*/ static PyObject *__pyx_pw_6Recode_4Task_13set_input(PyObject *__pyx_v_self, PyOb ject *__pyx_v_text); /*proto*/
static PyObject *__pyx_pw_6Recode_4Task_13set_input(PyObject *__pyx_v_self, PyOb ject *__pyx_v_text) { static PyObject *__pyx_pw_6Recode_4Task_13set_input(PyObject *__pyx_v_self, PyOb ject *__pyx_v_text) {
skipping to change at line 4164 skipping to change at line 4194
static PyObject *__pyx_pf_6Recode_4Task_12set_input(struct __pyx_obj_6Recode_Tas k *__pyx_v_self, PyObject *__pyx_v_text) { static PyObject *__pyx_pf_6Recode_4Task_12set_input(struct __pyx_obj_6Recode_Tas k *__pyx_v_self, PyObject *__pyx_v_text) {
char *__pyx_v_input; char *__pyx_v_input;
size_t __pyx_v_input_len; size_t __pyx_v_input_len;
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
char *__pyx_t_1; char *__pyx_t_1;
Py_ssize_t __pyx_t_2; Py_ssize_t __pyx_t_2;
__Pyx_RefNannySetupContext("set_input", 0); __Pyx_RefNannySetupContext("set_input", 0);
/* "Recode.pyx":693 /* "Recode.pyx":697
* *
* def set_input(self, text): * def set_input(self, text):
* cdef char *input = text # <<<<<<<<<<<<<< * cdef char *input = text # <<<<<<<<<<<<<<
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
* self.task.input.buffer = input * self.task.input.buffer = input
*/ */
__pyx_t_1 = __Pyx_PyObject_AsWritableString(__pyx_v_text); if (unlikely((!__py x_t_1) && PyErr_Occurred())) __PYX_ERR(1, 693, __pyx_L1_error) __pyx_t_1 = __Pyx_PyObject_AsWritableString(__pyx_v_text); if (unlikely((!__py x_t_1) && PyErr_Occurred())) __PYX_ERR(1, 697, __pyx_L1_error)
__pyx_v_input = __pyx_t_1; __pyx_v_input = __pyx_t_1;
/* "Recode.pyx":694 /* "Recode.pyx":698
* def set_input(self, text): * def set_input(self, text):
* cdef char *input = text * cdef char *input = text
* cdef size_t input_len = len(text) # <<<<<<<<<<<<<< * cdef size_t input_len = len(text) # <<<<<<<<<<<<<<
* self.task.input.buffer = input * self.task.input.buffer = input
* self.task.input.cursor = input * self.task.input.cursor = input
*/ */
__pyx_t_2 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_2 == ((Py_ssiz e_t)-1))) __PYX_ERR(1, 694, __pyx_L1_error) __pyx_t_2 = PyObject_Length(__pyx_v_text); if (unlikely(__pyx_t_2 == ((Py_ssiz e_t)-1))) __PYX_ERR(1, 698, __pyx_L1_error)
__pyx_v_input_len = __pyx_t_2; __pyx_v_input_len = __pyx_t_2;
/* "Recode.pyx":695 /* "Recode.pyx":699
* cdef char *input = text * cdef char *input = text
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
* self.task.input.buffer = input # <<<<<<<<<<<<<< * self.task.input.buffer = input # <<<<<<<<<<<<<<
* self.task.input.cursor = input * self.task.input.cursor = input
* self.task.input.limit = input + input_len * self.task.input.limit = input + input_len
*/ */
__pyx_v_self->task->input.buffer = __pyx_v_input; __pyx_v_self->task->input.buffer = __pyx_v_input;
/* "Recode.pyx":696 /* "Recode.pyx":700
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
* self.task.input.buffer = input * self.task.input.buffer = input
* self.task.input.cursor = input # <<<<<<<<<<<<<< * self.task.input.cursor = input # <<<<<<<<<<<<<<
* self.task.input.limit = input + input_len * self.task.input.limit = input + input_len
* *
*/ */
__pyx_v_self->task->input.cursor = __pyx_v_input; __pyx_v_self->task->input.cursor = __pyx_v_input;
/* "Recode.pyx":697 /* "Recode.pyx":701
* self.task.input.buffer = input * self.task.input.buffer = input
* self.task.input.cursor = input * self.task.input.cursor = input
* self.task.input.limit = input + input_len # <<<<<<<<<<<<< < * self.task.input.limit = input + input_len # <<<<<<<<<<<<< <
* *
* def get_output(self): * def get_output(self):
*/ */
__pyx_v_self->task->input.limit = (__pyx_v_input + __pyx_v_input_len); __pyx_v_self->task->input.limit = (__pyx_v_input + __pyx_v_input_len);
/* "Recode.pyx":692 /* "Recode.pyx":696
* return previous * return previous
* *
* def set_input(self, text): # <<<<<<<<<<<<<< * def set_input(self, text): # <<<<<<<<<<<<<<
* cdef char *input = text * cdef char *input = text
* cdef size_t input_len = len(text) * cdef size_t input_len = len(text)
*/ */
/* function exit code */ /* function exit code */
__pyx_r = Py_None; __Pyx_INCREF(Py_None); __pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0; goto __pyx_L0;
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_AddTraceback("Recode.Task.set_input", __pyx_clineno, __pyx_lineno, __pyx _filename); __Pyx_AddTraceback("Recode.Task.set_input", __pyx_clineno, __pyx_lineno, __pyx _filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":699 /* "Recode.pyx":703
* self.task.input.limit = input + input_len * self.task.input.limit = input + input_len
* *
* def get_output(self): # <<<<<<<<<<<<<< * def get_output(self): # <<<<<<<<<<<<<<
* return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer] * return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer]
* *
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_4Task_15get_output(PyObject *__pyx_v_self, CYT HON_UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_6Recode_4Task_15get_output(PyObject *__pyx_v_self, CYT HON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_6Recode_4Task_15get_output(PyObject *__pyx_v_self, CYT HON_UNUSED PyObject *unused) { static PyObject *__pyx_pw_6Recode_4Task_15get_output(PyObject *__pyx_v_self, CYT HON_UNUSED PyObject *unused) {
skipping to change at line 4258 skipping to change at line 4288
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
static PyObject *__pyx_pf_6Recode_4Task_14get_output(struct __pyx_obj_6Recode_Ta sk *__pyx_v_self) { static PyObject *__pyx_pf_6Recode_4Task_14get_output(struct __pyx_obj_6Recode_Ta sk *__pyx_v_self) {
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("get_output", 0); __Pyx_RefNannySetupContext("get_output", 0);
/* "Recode.pyx":700 /* "Recode.pyx":704
* *
* def get_output(self): * def get_output(self):
* return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer] # <<<<<<<<<<<<<< * return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer] # <<<<<<<<<<<<<<
* *
* def perform(self): * def perform(self):
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_self->task->output.buffer + 0, (__pyx_v_self->task->output.cursor - __pyx_v_self->task->output.buffer) - 0 ); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 700, __pyx_L1_error) __pyx_t_1 = __Pyx_PyBytes_FromStringAndSize(__pyx_v_self->task->output.buffer + 0, (__pyx_v_self->task->output.cursor - __pyx_v_self->task->output.buffer) - 0 ); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 704, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1; __pyx_r = __pyx_t_1;
__pyx_t_1 = 0; __pyx_t_1 = 0;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":699 /* "Recode.pyx":703
* self.task.input.limit = input + input_len * self.task.input.limit = input + input_len
* *
* def get_output(self): # <<<<<<<<<<<<<< * def get_output(self): # <<<<<<<<<<<<<<
* return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer] * return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer]
* *
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Task.get_output", __pyx_clineno, __pyx_lineno, __py x_filename); __Pyx_AddTraceback("Recode.Task.get_output", __pyx_clineno, __pyx_lineno, __py x_filename);
__pyx_r = NULL; __pyx_r = NULL;
__pyx_L0:; __pyx_L0:;
__Pyx_XGIVEREF(__pyx_r); __Pyx_XGIVEREF(__pyx_r);
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
/* "Recode.pyx":702 /* "Recode.pyx":706
* return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer] * return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer]
* *
* def perform(self): # <<<<<<<<<<<<<< * def perform(self): # <<<<<<<<<<<<<<
* return recode_perform_task(self.task) * return recode_perform_task(self.task)
*/ */
/* Python wrapper */ /* Python wrapper */
static PyObject *__pyx_pw_6Recode_4Task_17perform(PyObject *__pyx_v_self, CYTHON _UNUSED PyObject *unused); /*proto*/ static PyObject *__pyx_pw_6Recode_4Task_17perform(PyObject *__pyx_v_self, CYTHON _UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_6Recode_4Task_17perform(PyObject *__pyx_v_self, CYTHON _UNUSED PyObject *unused) { static PyObject *__pyx_pw_6Recode_4Task_17perform(PyObject *__pyx_v_self, CYTHON _UNUSED PyObject *unused) {
PyObject *__pyx_r = 0; PyObject *__pyx_r = 0;
skipping to change at line 4317 skipping to change at line 4347
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return __pyx_r; return __pyx_r;
} }
static PyObject *__pyx_pf_6Recode_4Task_16perform(struct __pyx_obj_6Recode_Task *__pyx_v_self) { static PyObject *__pyx_pf_6Recode_4Task_16perform(struct __pyx_obj_6Recode_Task *__pyx_v_self) {
PyObject *__pyx_r = NULL; PyObject *__pyx_r = NULL;
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL; PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("perform", 0); __Pyx_RefNannySetupContext("perform", 0);
/* "Recode.pyx":703 /* "Recode.pyx":707
* *
* def perform(self): * def perform(self):
* return recode_perform_task(self.task) # <<<<<<<<<<<<<< * return recode_perform_task(self.task) # <<<<<<<<<<<<<<
*/ */
__Pyx_XDECREF(__pyx_r); __Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyBool_FromLong(recode_perform_task(__pyx_v_self->task)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 703, __pyx_L1_error) __pyx_t_1 = __Pyx_PyBool_FromLong(recode_perform_task(__pyx_v_self->task)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 707, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1; __pyx_r = __pyx_t_1;
__pyx_t_1 = 0; __pyx_t_1 = 0;
goto __pyx_L0; goto __pyx_L0;
/* "Recode.pyx":702 /* "Recode.pyx":706
* return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer] * return self.task.output.buffer[:self.task.output.cursor - self.task.o utput.buffer]
* *
* def perform(self): # <<<<<<<<<<<<<< * def perform(self): # <<<<<<<<<<<<<<
* return recode_perform_task(self.task) * return recode_perform_task(self.task)
*/ */
/* function exit code */ /* function exit code */
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("Recode.Task.perform", __pyx_clineno, __pyx_lineno, __pyx_f ilename); __Pyx_AddTraceback("Recode.Task.perform", __pyx_clineno, __pyx_lineno, __pyx_f ilename);
skipping to change at line 4869 skipping to change at line 4899
{&__pyx_n_s_NUL, __pyx_k_NUL, sizeof(__pyx_k_NUL), 0, 0, 1, 1}, {&__pyx_n_s_NUL, __pyx_k_NUL, sizeof(__pyx_k_NUL), 0, 0, 1, 1},
{&__pyx_n_s_OCTAL_FORMAT, __pyx_k_OCTAL_FORMAT, sizeof(__pyx_k_OCTAL_FORMAT), 0, 0, 1, 1}, {&__pyx_n_s_OCTAL_FORMAT, __pyx_k_OCTAL_FORMAT, sizeof(__pyx_k_OCTAL_FORMAT), 0, 0, 1, 1},
{&__pyx_n_s_Outer, __pyx_k_Outer, sizeof(__pyx_k_Outer), 0, 0, 1, 1}, {&__pyx_n_s_Outer, __pyx_k_Outer, sizeof(__pyx_k_Outer), 0, 0, 1, 1},
{&__pyx_n_s_REPLACEMENT_CHARACTER, __pyx_k_REPLACEMENT_CHARACTER, sizeof(__pyx _k_REPLACEMENT_CHARACTER), 0, 0, 1, 1}, {&__pyx_n_s_REPLACEMENT_CHARACTER, __pyx_k_REPLACEMENT_CHARACTER, sizeof(__pyx _k_REPLACEMENT_CHARACTER), 0, 0, 1, 1},
{&__pyx_n_s_Recode, __pyx_k_Recode, sizeof(__pyx_k_Recode), 0, 0, 1, 1}, {&__pyx_n_s_Recode, __pyx_k_Recode, sizeof(__pyx_k_Recode), 0, 0, 1, 1},
{&__pyx_n_s_Request, __pyx_k_Request, sizeof(__pyx_k_Request), 0, 0, 1, 1}, {&__pyx_n_s_Request, __pyx_k_Request, sizeof(__pyx_k_Request), 0, 0, 1, 1},
{&__pyx_n_s_SIZE_1, __pyx_k_SIZE_1, sizeof(__pyx_k_SIZE_1), 0, 0, 1, 1}, {&__pyx_n_s_SIZE_1, __pyx_k_SIZE_1, sizeof(__pyx_k_SIZE_1), 0, 0, 1, 1},
{&__pyx_n_s_SIZE_2, __pyx_k_SIZE_2, sizeof(__pyx_k_SIZE_2), 0, 0, 1, 1}, {&__pyx_n_s_SIZE_2, __pyx_k_SIZE_2, sizeof(__pyx_k_SIZE_2), 0, 0, 1, 1},
{&__pyx_n_s_SIZE_4, __pyx_k_SIZE_4, sizeof(__pyx_k_SIZE_4), 0, 0, 1, 1}, {&__pyx_n_s_SIZE_4, __pyx_k_SIZE_4, sizeof(__pyx_k_SIZE_4), 0, 0, 1, 1},
{&__pyx_n_s_SIZE_N, __pyx_k_SIZE_N, sizeof(__pyx_k_SIZE_N), 0, 0, 1, 1}, {&__pyx_n_s_SIZE_N, __pyx_k_SIZE_N, sizeof(__pyx_k_SIZE_N), 0, 0, 1, 1},
{&__pyx_n_s_STRICT_MAPPING_FLAG, __pyx_k_STRICT_MAPPING_FLAG, sizeof(__pyx_k_S TRICT_MAPPING_FLAG), 0, 0, 1, 1},
{&__pyx_n_s_STRING_TO_UCS2, __pyx_k_STRING_TO_UCS2, sizeof(__pyx_k_STRING_TO_U CS2), 0, 0, 1, 1}, {&__pyx_n_s_STRING_TO_UCS2, __pyx_k_STRING_TO_UCS2, sizeof(__pyx_k_STRING_TO_U CS2), 0, 0, 1, 1},
{&__pyx_n_s_STRIP_DATA, __pyx_k_STRIP_DATA, sizeof(__pyx_k_STRIP_DATA), 0, 0, 1, 1}, {&__pyx_n_s_STRIP_DATA, __pyx_k_STRIP_DATA, sizeof(__pyx_k_STRIP_DATA), 0, 0, 1, 1},
{&__pyx_n_s_STRIP_SIZE, __pyx_k_STRIP_SIZE, sizeof(__pyx_k_STRIP_SIZE), 0, 0, 1, 1}, {&__pyx_n_s_STRIP_SIZE, __pyx_k_STRIP_SIZE, sizeof(__pyx_k_STRIP_SIZE), 0, 0, 1, 1},
{&__pyx_n_s_SWAP_NO, __pyx_k_SWAP_NO, sizeof(__pyx_k_SWAP_NO), 0, 0, 1, 1}, {&__pyx_n_s_SWAP_NO, __pyx_k_SWAP_NO, sizeof(__pyx_k_SWAP_NO), 0, 0, 1, 1},
{&__pyx_n_s_SWAP_UNDECIDED, __pyx_k_SWAP_UNDECIDED, sizeof(__pyx_k_SWAP_UNDECI DED), 0, 0, 1, 1}, {&__pyx_n_s_SWAP_UNDECIDED, __pyx_k_SWAP_UNDECIDED, sizeof(__pyx_k_SWAP_UNDECI DED), 0, 0, 1, 1},
{&__pyx_n_s_SWAP_YES, __pyx_k_SWAP_YES, sizeof(__pyx_k_SWAP_YES), 0, 0, 1, 1}, {&__pyx_n_s_SWAP_YES, __pyx_k_SWAP_YES, sizeof(__pyx_k_SWAP_YES), 0, 0, 1, 1},
{&__pyx_n_s_SYMBOL_CREATE_CHARSET, __pyx_k_SYMBOL_CREATE_CHARSET, sizeof(__pyx _k_SYMBOL_CREATE_CHARSET), 0, 0, 1, 1}, {&__pyx_n_s_SYMBOL_CREATE_CHARSET, __pyx_k_SYMBOL_CREATE_CHARSET, sizeof(__pyx _k_SYMBOL_CREATE_CHARSET), 0, 0, 1, 1},
{&__pyx_n_s_SYMBOL_CREATE_DATA_SURFACE, __pyx_k_SYMBOL_CREATE_DATA_SURFACE, si zeof(__pyx_k_SYMBOL_CREATE_DATA_SURFACE), 0, 0, 1, 1}, {&__pyx_n_s_SYMBOL_CREATE_DATA_SURFACE, __pyx_k_SYMBOL_CREATE_DATA_SURFACE, si zeof(__pyx_k_SYMBOL_CREATE_DATA_SURFACE), 0, 0, 1, 1},
{&__pyx_n_s_SYSTEM_ERROR, __pyx_k_SYSTEM_ERROR, sizeof(__pyx_k_SYSTEM_ERROR), 0, 0, 1, 1}, {&__pyx_n_s_SYSTEM_ERROR, __pyx_k_SYSTEM_ERROR, sizeof(__pyx_k_SYSTEM_ERROR), 0, 0, 1, 1},
{&__pyx_n_s_Task, __pyx_k_Task, sizeof(__pyx_k_Task), 0, 0, 1, 1}, {&__pyx_n_s_Task, __pyx_k_Task, sizeof(__pyx_k_Task), 0, 0, 1, 1},
skipping to change at line 5038 skipping to change at line 5069
__Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0); __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
/*--- Function export code ---*/ /*--- Function export code ---*/
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return 0; return 0;
} }
static int __Pyx_modinit_type_init_code(void) { static int __Pyx_modinit_type_init_code(void) {
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0); __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
/*--- Type init code ---*/ /*--- Type init code ---*/
if (PyType_Ready(&__pyx_type_6Recode_Outer) < 0) __PYX_ERR(1, 520, __pyx_L1_er ror) if (PyType_Ready(&__pyx_type_6Recode_Outer) < 0) __PYX_ERR(1, 522, __pyx_L1_er ror)
#if PY_VERSION_HEX < 0x030800B1 #if PY_VERSION_HEX < 0x030800B1
__pyx_type_6Recode_Outer.tp_print = 0; __pyx_type_6Recode_Outer.tp_print = 0;
#endif #endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_ 6Recode_Outer.tp_dictoffset && __pyx_type_6Recode_Outer.tp_getattro == PyObject_ GenericGetAttr)) { if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_ 6Recode_Outer.tp_dictoffset && __pyx_type_6Recode_Outer.tp_getattro == PyObject_ GenericGetAttr)) {
__pyx_type_6Recode_Outer.tp_getattro = __Pyx_PyObject_GenericGetAttr; __pyx_type_6Recode_Outer.tp_getattro = __Pyx_PyObject_GenericGetAttr;
} }
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Outer, (PyObject *)&__pyx_type_6Recode if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Outer, (PyObject *)&__pyx_type_6Recode
_Outer) < 0) __PYX_ERR(1, 520, __pyx_L1_error) _Outer) < 0) __PYX_ERR(1, 522, __pyx_L1_error)
if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6Recode_Outer) < 0) __PYX_ERR(1, if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6Recode_Outer) < 0) __PYX_ERR(1,
520, __pyx_L1_error) 522, __pyx_L1_error)
__pyx_ptype_6Recode_Outer = &__pyx_type_6Recode_Outer; __pyx_ptype_6Recode_Outer = &__pyx_type_6Recode_Outer;
if (PyType_Ready(&__pyx_type_6Recode_Request) < 0) __PYX_ERR(1, 585, __pyx_L1_ error) if (PyType_Ready(&__pyx_type_6Recode_Request) < 0) __PYX_ERR(1, 589, __pyx_L1_ error)
#if PY_VERSION_HEX < 0x030800B1 #if PY_VERSION_HEX < 0x030800B1
__pyx_type_6Recode_Request.tp_print = 0; __pyx_type_6Recode_Request.tp_print = 0;
#endif #endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_ 6Recode_Request.tp_dictoffset && __pyx_type_6Recode_Request.tp_getattro == PyObj ect_GenericGetAttr)) { if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_ 6Recode_Request.tp_dictoffset && __pyx_type_6Recode_Request.tp_getattro == PyObj ect_GenericGetAttr)) {
__pyx_type_6Recode_Request.tp_getattro = __Pyx_PyObject_GenericGetAttr; __pyx_type_6Recode_Request.tp_getattro = __Pyx_PyObject_GenericGetAttr;
} }
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Request, (PyObject *)&__pyx_type_6Reco if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Request, (PyObject *)&__pyx_type_6Reco
de_Request) < 0) __PYX_ERR(1, 585, __pyx_L1_error) de_Request) < 0) __PYX_ERR(1, 589, __pyx_L1_error)
if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6Recode_Request) < 0) __PYX_ERR( if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6Recode_Request) < 0) __PYX_ERR(
1, 585, __pyx_L1_error) 1, 589, __pyx_L1_error)
__pyx_ptype_6Recode_Request = &__pyx_type_6Recode_Request; __pyx_ptype_6Recode_Request = &__pyx_type_6Recode_Request;
if (PyType_Ready(&__pyx_type_6Recode_Task) < 0) __PYX_ERR(1, 664, __pyx_L1_err or) if (PyType_Ready(&__pyx_type_6Recode_Task) < 0) __PYX_ERR(1, 668, __pyx_L1_err or)
#if PY_VERSION_HEX < 0x030800B1 #if PY_VERSION_HEX < 0x030800B1
__pyx_type_6Recode_Task.tp_print = 0; __pyx_type_6Recode_Task.tp_print = 0;
#endif #endif
if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_ 6Recode_Task.tp_dictoffset && __pyx_type_6Recode_Task.tp_getattro == PyObject_Ge nericGetAttr)) { if ((CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP) && likely(!__pyx_type_ 6Recode_Task.tp_dictoffset && __pyx_type_6Recode_Task.tp_getattro == PyObject_Ge nericGetAttr)) {
__pyx_type_6Recode_Task.tp_getattro = __Pyx_PyObject_GenericGetAttr; __pyx_type_6Recode_Task.tp_getattro = __Pyx_PyObject_GenericGetAttr;
} }
if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Task, (PyObject *)&__pyx_type_6Recode_ if (PyObject_SetAttr(__pyx_m, __pyx_n_s_Task, (PyObject *)&__pyx_type_6Recode_
Task) < 0) __PYX_ERR(1, 664, __pyx_L1_error) Task) < 0) __PYX_ERR(1, 668, __pyx_L1_error)
if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6Recode_Task) < 0) __PYX_ERR(1, if (__Pyx_setup_reduce((PyObject*)&__pyx_type_6Recode_Task) < 0) __PYX_ERR(1,
664, __pyx_L1_error) 668, __pyx_L1_error)
__pyx_ptype_6Recode_Task = &__pyx_type_6Recode_Task; __pyx_ptype_6Recode_Task = &__pyx_type_6Recode_Task;
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return 0; return 0;
__pyx_L1_error:; __pyx_L1_error:;
__Pyx_RefNannyFinishContext(); __Pyx_RefNannyFinishContext();
return -1; return -1;
} }
static int __Pyx_modinit_type_import_code(void) { static int __Pyx_modinit_type_import_code(void) {
__Pyx_RefNannyDeclarations __Pyx_RefNannyDeclarations
skipping to change at line 5296 skipping to change at line 5327
(void)__Pyx_modinit_function_export_code(); (void)__Pyx_modinit_function_export_code();
if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error; if (unlikely(__Pyx_modinit_type_init_code() != 0)) goto __pyx_L1_error;
(void)__Pyx_modinit_type_import_code(); (void)__Pyx_modinit_type_import_code();
(void)__Pyx_modinit_variable_import_code(); (void)__Pyx_modinit_variable_import_code();
(void)__Pyx_modinit_function_import_code(); (void)__Pyx_modinit_function_import_code();
/*--- Execution code ---*/ /*--- Execution code ---*/
#if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
if (__Pyx_patch_abc() < 0) __PYX_ERR(1, 1, __pyx_L1_error) if (__Pyx_patch_abc() < 0) __PYX_ERR(1, 1, __pyx_L1_error)
#endif #endif
/* "Recode.pyx":446 /* "Recode.pyx":447
* bool recode_perform_task(RECODE_TASK) * bool recode_perform_task(RECODE_TASK)
* *
* class error(Exception): # <<<<<<<<<<<<<< * class error(Exception): # <<<<<<<<<<<<<<
* pass * pass
* *
*/ */
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 446, __pyx_ L1_error) __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 447, __pyx_ L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); __Pyx_INCREF(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
__Pyx_GIVEREF(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0]))); __Pyx_GIVEREF(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception) [0]))); PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)(&((PyTypeObject*)PyExc_Exception) [0])));
__pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2 )) __PYX_ERR(1, 446, __pyx_L1_error) __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2 )) __PYX_ERR(1, 447, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_error, _ _pyx_n_s_error, (PyObject *) NULL, __pyx_n_s_Recode, (PyObject *) NULL); if (unl ikely(!__pyx_t_3)) __PYX_ERR(1, 446, __pyx_L1_error) __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_error, _ _pyx_n_s_error, (PyObject *) NULL, __pyx_n_s_Recode, (PyObject *) NULL); if (unl ikely(!__pyx_t_3)) __PYX_ERR(1, 447, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_error, __pyx_t_1, __pyx_ t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 446, __pyx_L1_error) __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_error, __pyx_t_1, __pyx_ t_3, NULL, 0, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 447, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_4);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_error, __pyx_t_4) < 0) __PYX_ERR(1, 446, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_error, __pyx_t_4) < 0) __PYX_ERR(1, 447, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":451 /* "Recode.pyx":452
* ## Enums repeated for Python. * ## Enums repeated for Python.
* *
* NO_SYMBOL_TYPE = RECODE_NO_SYMBOL_TYPE # <<<<<<<<<<<<<< * NO_SYMBOL_TYPE = RECODE_NO_SYMBOL_TYPE # <<<<<<<<<<<<<<
* CHARSET = RECODE_CHARSET * CHARSET = RECODE_CHARSET
* DATA_SURFACE = RECODE_DATA_SURFACE * DATA_SURFACE = RECODE_DATA_SURFACE
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_symbol_type(RECODE_NO_SYMBOL_TYPE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 451, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_symbol_type(RECODE_NO_SYMBOL_TYPE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 452, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_SYMBOL_TYPE, __pyx_t_1) < 0) __PYX_ER R(1, 451, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_SYMBOL_TYPE, __pyx_t_1) < 0) __PYX_ER R(1, 452, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":452 /* "Recode.pyx":453
* *
* NO_SYMBOL_TYPE = RECODE_NO_SYMBOL_TYPE * NO_SYMBOL_TYPE = RECODE_NO_SYMBOL_TYPE
* CHARSET = RECODE_CHARSET # <<<<<<<<<<<<<< * CHARSET = RECODE_CHARSET # <<<<<<<<<<<<<<
* DATA_SURFACE = RECODE_DATA_SURFACE * DATA_SURFACE = RECODE_DATA_SURFACE
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_symbol_type(RECODE_CHARSET); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 452, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_symbol_type(RECODE_CHARSET); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 453, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_CHARSET, __pyx_t_1) < 0) __PYX_ERR(1, 45 2, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_CHARSET, __pyx_t_1) < 0) __PYX_ERR(1, 45 3, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":453 /* "Recode.pyx":454
* NO_SYMBOL_TYPE = RECODE_NO_SYMBOL_TYPE * NO_SYMBOL_TYPE = RECODE_NO_SYMBOL_TYPE
* CHARSET = RECODE_CHARSET * CHARSET = RECODE_CHARSET
* DATA_SURFACE = RECODE_DATA_SURFACE # <<<<<<<<<<<<<< * DATA_SURFACE = RECODE_DATA_SURFACE # <<<<<<<<<<<<<<
* *
* NO_CHARSET_DATA = RECODE_NO_CHARSET_DATA * NO_CHARSET_DATA = RECODE_NO_CHARSET_DATA
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_symbol_type(RECODE_DATA_SURFACE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 453, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_symbol_type(RECODE_DATA_SURFACE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 454, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_SURFACE, __pyx_t_1) < 0) __PYX_ERR( 1, 453, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_DATA_SURFACE, __pyx_t_1) < 0) __PYX_ERR( 1, 454, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":455 /* "Recode.pyx":456
* DATA_SURFACE = RECODE_DATA_SURFACE * DATA_SURFACE = RECODE_DATA_SURFACE
* *
* NO_CHARSET_DATA = RECODE_NO_CHARSET_DATA # <<<<<<<<<<<<<< * NO_CHARSET_DATA = RECODE_NO_CHARSET_DATA # <<<<<<<<<<<<<<
* STRIP_DATA = RECODE_STRIP_DATA * STRIP_DATA = RECODE_STRIP_DATA
* EXPLODE_DATA = RECODE_EXPLODE_DATA * EXPLODE_DATA = RECODE_EXPLODE_DATA
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_data_type(RECODE_NO_CHARSET_DATA); i f (unlikely(!__pyx_t_1)) __PYX_ERR(1, 455, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_data_type(RECODE_NO_CHARSET_DATA); i f (unlikely(!__pyx_t_1)) __PYX_ERR(1, 456, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_CHARSET_DATA, __pyx_t_1) < 0) __PYX_E RR(1, 455, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_CHARSET_DATA, __pyx_t_1) < 0) __PYX_E RR(1, 456, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":456 /* "Recode.pyx":457
* *
* NO_CHARSET_DATA = RECODE_NO_CHARSET_DATA * NO_CHARSET_DATA = RECODE_NO_CHARSET_DATA
* STRIP_DATA = RECODE_STRIP_DATA # <<<<<<<<<<<<<< * STRIP_DATA = RECODE_STRIP_DATA # <<<<<<<<<<<<<<
* EXPLODE_DATA = RECODE_EXPLODE_DATA * EXPLODE_DATA = RECODE_EXPLODE_DATA
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_data_type(RECODE_STRIP_DATA); if (un likely(!__pyx_t_1)) __PYX_ERR(1, 456, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_data_type(RECODE_STRIP_DATA); if (un likely(!__pyx_t_1)) __PYX_ERR(1, 457, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_STRIP_DATA, __pyx_t_1) < 0) __PYX_ERR(1, 456, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_STRIP_DATA, __pyx_t_1) < 0) __PYX_ERR(1, 457, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":457 /* "Recode.pyx":458
* NO_CHARSET_DATA = RECODE_NO_CHARSET_DATA * NO_CHARSET_DATA = RECODE_NO_CHARSET_DATA
* STRIP_DATA = RECODE_STRIP_DATA * STRIP_DATA = RECODE_STRIP_DATA
* EXPLODE_DATA = RECODE_EXPLODE_DATA # <<<<<<<<<<<<<< * EXPLODE_DATA = RECODE_EXPLODE_DATA # <<<<<<<<<<<<<<
* *
* SIZE_1 = RECODE_1 * SIZE_1 = RECODE_1
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_data_type(RECODE_EXPLODE_DATA); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 457, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_data_type(RECODE_EXPLODE_DATA); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 458, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_EXPLODE_DATA, __pyx_t_1) < 0) __PYX_ERR( 1, 457, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_EXPLODE_DATA, __pyx_t_1) < 0) __PYX_ERR( 1, 458, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":459 /* "Recode.pyx":460
* EXPLODE_DATA = RECODE_EXPLODE_DATA * EXPLODE_DATA = RECODE_EXPLODE_DATA
* *
* SIZE_1 = RECODE_1 # <<<<<<<<<<<<<< * SIZE_1 = RECODE_1 # <<<<<<<<<<<<<<
* SIZE_2 = RECODE_2 * SIZE_2 = RECODE_2
* SIZE_4 = RECODE_4 * SIZE_4 = RECODE_4
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_size(RECODE_1); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 459, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_size(RECODE_1); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 460, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIZE_1, __pyx_t_1) < 0) __PYX_ERR(1, 459 , __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIZE_1, __pyx_t_1) < 0) __PYX_ERR(1, 460 , __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":460 /* "Recode.pyx":461
* *
* SIZE_1 = RECODE_1 * SIZE_1 = RECODE_1
* SIZE_2 = RECODE_2 # <<<<<<<<<<<<<< * SIZE_2 = RECODE_2 # <<<<<<<<<<<<<<
* SIZE_4 = RECODE_4 * SIZE_4 = RECODE_4
* SIZE_N = RECODE_N * SIZE_N = RECODE_N
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_size(RECODE_2); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 460, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_size(RECODE_2); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 461, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIZE_2, __pyx_t_1) < 0) __PYX_ERR(1, 460 , __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIZE_2, __pyx_t_1) < 0) __PYX_ERR(1, 461 , __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":461 /* "Recode.pyx":462
* SIZE_1 = RECODE_1 * SIZE_1 = RECODE_1
* SIZE_2 = RECODE_2 * SIZE_2 = RECODE_2
* SIZE_4 = RECODE_4 # <<<<<<<<<<<<<< * SIZE_4 = RECODE_4 # <<<<<<<<<<<<<<
* SIZE_N = RECODE_N * SIZE_N = RECODE_N
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_size(RECODE_4); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 461, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_size(RECODE_4); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 462, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIZE_4, __pyx_t_1) < 0) __PYX_ERR(1, 461 , __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIZE_4, __pyx_t_1) < 0) __PYX_ERR(1, 462 , __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":462 /* "Recode.pyx":463
* SIZE_2 = RECODE_2 * SIZE_2 = RECODE_2
* SIZE_4 = RECODE_4 * SIZE_4 = RECODE_4
* SIZE_N = RECODE_N # <<<<<<<<<<<<<< * SIZE_N = RECODE_N # <<<<<<<<<<<<<<
* *
* NO_STEP_TABLE = RECODE_NO_STEP_TABLE * NO_STEP_TABLE = RECODE_NO_STEP_TABLE
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_size(RECODE_N); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 462, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_size(RECODE_N); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 463, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIZE_N, __pyx_t_1) < 0) __PYX_ERR(1, 462 , __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIZE_N, __pyx_t_1) < 0) __PYX_ERR(1, 463 , __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":464 /* "Recode.pyx":465
* SIZE_N = RECODE_N * SIZE_N = RECODE_N
* *
* NO_STEP_TABLE = RECODE_NO_STEP_TABLE # <<<<<<<<<<<<<< * NO_STEP_TABLE = RECODE_NO_STEP_TABLE # <<<<<<<<<<<<<<
* BYTE_TO_BYTE = RECODE_BYTE_TO_BYTE * BYTE_TO_BYTE = RECODE_BYTE_TO_BYTE
* BYTE_TO_STRING = RECODE_BYTE_TO_STRING * BYTE_TO_STRING = RECODE_BYTE_TO_STRING
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_NO_STEP_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 464, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_NO_STEP_TABLE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 465, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_STEP_TABLE, __pyx_t_1) < 0) __PYX_ERR (1, 464, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_STEP_TABLE, __pyx_t_1) < 0) __PYX_ERR (1, 465, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":465 /* "Recode.pyx":466
* *
* NO_STEP_TABLE = RECODE_NO_STEP_TABLE * NO_STEP_TABLE = RECODE_NO_STEP_TABLE
* BYTE_TO_BYTE = RECODE_BYTE_TO_BYTE # <<<<<<<<<<<<<< * BYTE_TO_BYTE = RECODE_BYTE_TO_BYTE # <<<<<<<<<<<<<<
* BYTE_TO_STRING = RECODE_BYTE_TO_STRING * BYTE_TO_STRING = RECODE_BYTE_TO_STRING
* UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE * UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_BYTE_TO_BYTE); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 465, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_BYTE_TO_BYTE); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 466, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_BYTE_TO_BYTE, __pyx_t_1) < 0) __PYX_ERR( 1, 465, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_BYTE_TO_BYTE, __pyx_t_1) < 0) __PYX_ERR( 1, 466, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":466 /* "Recode.pyx":467
* NO_STEP_TABLE = RECODE_NO_STEP_TABLE * NO_STEP_TABLE = RECODE_NO_STEP_TABLE
* BYTE_TO_BYTE = RECODE_BYTE_TO_BYTE * BYTE_TO_BYTE = RECODE_BYTE_TO_BYTE
* BYTE_TO_STRING = RECODE_BYTE_TO_STRING # <<<<<<<<<<<<<< * BYTE_TO_STRING = RECODE_BYTE_TO_STRING # <<<<<<<<<<<<<<
* UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE * UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE
* UCS2_TO_STRING = RECODE_UCS2_TO_STRING * UCS2_TO_STRING = RECODE_UCS2_TO_STRING
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_BYTE_TO_STRING); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 466, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_BYTE_TO_STRING); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 467, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_BYTE_TO_STRING, __pyx_t_1) < 0) __PYX_ER R(1, 466, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_BYTE_TO_STRING, __pyx_t_1) < 0) __PYX_ER R(1, 467, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":467 /* "Recode.pyx":468
* BYTE_TO_BYTE = RECODE_BYTE_TO_BYTE * BYTE_TO_BYTE = RECODE_BYTE_TO_BYTE
* BYTE_TO_STRING = RECODE_BYTE_TO_STRING * BYTE_TO_STRING = RECODE_BYTE_TO_STRING
* UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE # <<<<<<<<<<<<<< * UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE # <<<<<<<<<<<<<<
* UCS2_TO_STRING = RECODE_UCS2_TO_STRING * UCS2_TO_STRING = RECODE_UCS2_TO_STRING
* STRING_TO_UCS2 = RECODE_STRING_TO_UCS2 * STRING_TO_UCS2 = RECODE_STRING_TO_UCS2
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_UCS2_TO_BYTE); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 467, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_UCS2_TO_BYTE); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 468, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_UCS2_TO_BYTE, __pyx_t_1) < 0) __PYX_ERR( 1, 467, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_UCS2_TO_BYTE, __pyx_t_1) < 0) __PYX_ERR( 1, 468, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":468 /* "Recode.pyx":469
* BYTE_TO_STRING = RECODE_BYTE_TO_STRING * BYTE_TO_STRING = RECODE_BYTE_TO_STRING
* UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE * UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE
* UCS2_TO_STRING = RECODE_UCS2_TO_STRING # <<<<<<<<<<<<<< * UCS2_TO_STRING = RECODE_UCS2_TO_STRING # <<<<<<<<<<<<<<
* STRING_TO_UCS2 = RECODE_STRING_TO_UCS2 * STRING_TO_UCS2 = RECODE_STRING_TO_UCS2
* COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE * COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_UCS2_TO_STRING); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 468, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_UCS2_TO_STRING); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 469, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_UCS2_TO_STRING, __pyx_t_1) < 0) __PYX_ER R(1, 468, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_UCS2_TO_STRING, __pyx_t_1) < 0) __PYX_ER R(1, 469, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":469 /* "Recode.pyx":470
* UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE * UCS2_TO_BYTE = RECODE_UCS2_TO_BYTE
* UCS2_TO_STRING = RECODE_UCS2_TO_STRING * UCS2_TO_STRING = RECODE_UCS2_TO_STRING
* STRING_TO_UCS2 = RECODE_STRING_TO_UCS2 # <<<<<<<<<<<<<< * STRING_TO_UCS2 = RECODE_STRING_TO_UCS2 # <<<<<<<<<<<<<<
* COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE * COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE
* COMBINE_STEP = RECODE_COMBINE_STEP * COMBINE_STEP = RECODE_COMBINE_STEP
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_STRING_TO_UCS2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 469, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_STRING_TO_UCS2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 470, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_STRING_TO_UCS2, __pyx_t_1) < 0) __PYX_ER R(1, 469, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_STRING_TO_UCS2, __pyx_t_1) < 0) __PYX_ER R(1, 470, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":470 /* "Recode.pyx":471
* UCS2_TO_STRING = RECODE_UCS2_TO_STRING * UCS2_TO_STRING = RECODE_UCS2_TO_STRING
* STRING_TO_UCS2 = RECODE_STRING_TO_UCS2 * STRING_TO_UCS2 = RECODE_STRING_TO_UCS2
* COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE # <<<<<<<<<<<<<< * COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE # <<<<<<<<<<<<<<
* COMBINE_STEP = RECODE_COMBINE_STEP * COMBINE_STEP = RECODE_COMBINE_STEP
* EXPLODE_STEP = RECODE_EXPLODE_STEP * EXPLODE_STEP = RECODE_EXPLODE_STEP
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_COMBINE_EXPLODE); i f (unlikely(!__pyx_t_1)) __PYX_ERR(1, 470, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_COMBINE_EXPLODE); i f (unlikely(!__pyx_t_1)) __PYX_ERR(1, 471, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBINE_EXPLODE, __pyx_t_1) < 0) __PYX_E RR(1, 470, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBINE_EXPLODE, __pyx_t_1) < 0) __PYX_E RR(1, 471, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":471 /* "Recode.pyx":472
* STRING_TO_UCS2 = RECODE_STRING_TO_UCS2 * STRING_TO_UCS2 = RECODE_STRING_TO_UCS2
* COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE * COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE
* COMBINE_STEP = RECODE_COMBINE_STEP # <<<<<<<<<<<<<< * COMBINE_STEP = RECODE_COMBINE_STEP # <<<<<<<<<<<<<<
* EXPLODE_STEP = RECODE_EXPLODE_STEP * EXPLODE_STEP = RECODE_EXPLODE_STEP
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_COMBINE_STEP); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 471, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_COMBINE_STEP); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 472, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBINE_STEP, __pyx_t_1) < 0) __PYX_ERR( 1, 471, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_COMBINE_STEP, __pyx_t_1) < 0) __PYX_ERR( 1, 472, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":472 /* "Recode.pyx":473
* COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE * COMBINE_EXPLODE = RECODE_COMBINE_EXPLODE
* COMBINE_STEP = RECODE_COMBINE_STEP * COMBINE_STEP = RECODE_COMBINE_STEP
* EXPLODE_STEP = RECODE_EXPLODE_STEP # <<<<<<<<<<<<<< * EXPLODE_STEP = RECODE_EXPLODE_STEP # <<<<<<<<<<<<<<
* *
* SWAP_UNDECIDED = RECODE_SWAP_UNDECIDED * SWAP_UNDECIDED = RECODE_SWAP_UNDECIDED
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_EXPLODE_STEP); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 472, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_step_type(RECODE_EXPLODE_STEP); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 473, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_EXPLODE_STEP, __pyx_t_1) < 0) __PYX_ERR( 1, 472, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_EXPLODE_STEP, __pyx_t_1) < 0) __PYX_ERR( 1, 473, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":474 /* "Recode.pyx":475
* EXPLODE_STEP = RECODE_EXPLODE_STEP * EXPLODE_STEP = RECODE_EXPLODE_STEP
* *
* SWAP_UNDECIDED = RECODE_SWAP_UNDECIDED # <<<<<<<<<<<<<< * SWAP_UNDECIDED = RECODE_SWAP_UNDECIDED # <<<<<<<<<<<<<<
* SWAP_NO = RECODE_SWAP_NO * SWAP_NO = RECODE_SWAP_NO
* SWAP_YES = RECODE_SWAP_YES * SWAP_YES = RECODE_SWAP_YES
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_swap_input(RECODE_SWAP_UNDECIDED); i f (unlikely(!__pyx_t_1)) __PYX_ERR(1, 474, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_swap_input(RECODE_SWAP_UNDECIDED); i f (unlikely(!__pyx_t_1)) __PYX_ERR(1, 475, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SWAP_UNDECIDED, __pyx_t_1) < 0) __PYX_ER R(1, 474, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SWAP_UNDECIDED, __pyx_t_1) < 0) __PYX_ER R(1, 475, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":475 /* "Recode.pyx":476
* *
* SWAP_UNDECIDED = RECODE_SWAP_UNDECIDED * SWAP_UNDECIDED = RECODE_SWAP_UNDECIDED
* SWAP_NO = RECODE_SWAP_NO # <<<<<<<<<<<<<< * SWAP_NO = RECODE_SWAP_NO # <<<<<<<<<<<<<<
* SWAP_YES = RECODE_SWAP_YES * SWAP_YES = RECODE_SWAP_YES
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_swap_input(RECODE_SWAP_NO); if (unli kely(!__pyx_t_1)) __PYX_ERR(1, 475, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_swap_input(RECODE_SWAP_NO); if (unli kely(!__pyx_t_1)) __PYX_ERR(1, 476, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SWAP_NO, __pyx_t_1) < 0) __PYX_ERR(1, 47 5, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SWAP_NO, __pyx_t_1) < 0) __PYX_ERR(1, 47 6, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":476 /* "Recode.pyx":477
* SWAP_UNDECIDED = RECODE_SWAP_UNDECIDED * SWAP_UNDECIDED = RECODE_SWAP_UNDECIDED
* SWAP_NO = RECODE_SWAP_NO * SWAP_NO = RECODE_SWAP_NO
* SWAP_YES = RECODE_SWAP_YES # <<<<<<<<<<<<<< * SWAP_YES = RECODE_SWAP_YES # <<<<<<<<<<<<<<
* *
* NO_ERROR = RECODE_NO_ERROR * NO_ERROR = RECODE_NO_ERROR
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_swap_input(RECODE_SWAP_YES); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 476, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_swap_input(RECODE_SWAP_YES); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 477, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SWAP_YES, __pyx_t_1) < 0) __PYX_ERR(1, 4 76, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SWAP_YES, __pyx_t_1) < 0) __PYX_ERR(1, 4 77, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":478 /* "Recode.pyx":479
* SWAP_YES = RECODE_SWAP_YES * SWAP_YES = RECODE_SWAP_YES
* *
* NO_ERROR = RECODE_NO_ERROR # <<<<<<<<<<<<<< * NO_ERROR = RECODE_NO_ERROR # <<<<<<<<<<<<<<
* NOT_CANONICAL = RECODE_NOT_CANONICAL * NOT_CANONICAL = RECODE_NOT_CANONICAL
* AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT * AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_NO_ERROR); if (unlikely (!__pyx_t_1)) __PYX_ERR(1, 478, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_NO_ERROR); if (unlikely (!__pyx_t_1)) __PYX_ERR(1, 479, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_ERROR, __pyx_t_1) < 0) __PYX_ERR(1, 4 78, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_ERROR, __pyx_t_1) < 0) __PYX_ERR(1, 4 79, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":479 /* "Recode.pyx":480
* *
* NO_ERROR = RECODE_NO_ERROR * NO_ERROR = RECODE_NO_ERROR
* NOT_CANONICAL = RECODE_NOT_CANONICAL # <<<<<<<<<<<<<< * NOT_CANONICAL = RECODE_NOT_CANONICAL # <<<<<<<<<<<<<<
* AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT * AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT
* UNTRANSLATABLE = RECODE_UNTRANSLATABLE * UNTRANSLATABLE = RECODE_UNTRANSLATABLE
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_NOT_CANONICAL); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 479, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_NOT_CANONICAL); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 480, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NOT_CANONICAL, __pyx_t_1) < 0) __PYX_ERR (1, 479, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NOT_CANONICAL, __pyx_t_1) < 0) __PYX_ERR (1, 480, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":480 /* "Recode.pyx":481
* NO_ERROR = RECODE_NO_ERROR * NO_ERROR = RECODE_NO_ERROR
* NOT_CANONICAL = RECODE_NOT_CANONICAL * NOT_CANONICAL = RECODE_NOT_CANONICAL
* AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT # <<<<<<<<<<<<<< * AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT # <<<<<<<<<<<<<<
* UNTRANSLATABLE = RECODE_UNTRANSLATABLE * UNTRANSLATABLE = RECODE_UNTRANSLATABLE
* INVALID_INPUT = RECODE_INVALID_INPUT * INVALID_INPUT = RECODE_INVALID_INPUT
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_AMBIGUOUS_OUTPUT); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 480, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_AMBIGUOUS_OUTPUT); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 481, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_AMBIGUOUS_OUTPUT, __pyx_t_1) < 0) __PYX_ ERR(1, 480, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_AMBIGUOUS_OUTPUT, __pyx_t_1) < 0) __PYX_ ERR(1, 481, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":481 /* "Recode.pyx":482
* NOT_CANONICAL = RECODE_NOT_CANONICAL * NOT_CANONICAL = RECODE_NOT_CANONICAL
* AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT * AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT
* UNTRANSLATABLE = RECODE_UNTRANSLATABLE # <<<<<<<<<<<<<< * UNTRANSLATABLE = RECODE_UNTRANSLATABLE # <<<<<<<<<<<<<<
* INVALID_INPUT = RECODE_INVALID_INPUT * INVALID_INPUT = RECODE_INVALID_INPUT
* SYSTEM_ERROR = RECODE_SYSTEM_ERROR * SYSTEM_ERROR = RECODE_SYSTEM_ERROR
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_UNTRANSLATABLE); if (un likely(!__pyx_t_1)) __PYX_ERR(1, 481, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_UNTRANSLATABLE); if (un likely(!__pyx_t_1)) __PYX_ERR(1, 482, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_UNTRANSLATABLE, __pyx_t_1) < 0) __PYX_ER R(1, 481, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_UNTRANSLATABLE, __pyx_t_1) < 0) __PYX_ER R(1, 482, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":482 /* "Recode.pyx":483
* AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT * AMBIGUOUS_OUTPUT = RECODE_AMBIGUOUS_OUTPUT
* UNTRANSLATABLE = RECODE_UNTRANSLATABLE * UNTRANSLATABLE = RECODE_UNTRANSLATABLE
* INVALID_INPUT = RECODE_INVALID_INPUT # <<<<<<<<<<<<<< * INVALID_INPUT = RECODE_INVALID_INPUT # <<<<<<<<<<<<<<
* SYSTEM_ERROR = RECODE_SYSTEM_ERROR * SYSTEM_ERROR = RECODE_SYSTEM_ERROR
* USER_ERROR = RECODE_USER_ERROR * USER_ERROR = RECODE_USER_ERROR
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_INVALID_INPUT); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 482, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_INVALID_INPUT); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 483, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_INVALID_INPUT, __pyx_t_1) < 0) __PYX_ERR (1, 482, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_INVALID_INPUT, __pyx_t_1) < 0) __PYX_ERR (1, 483, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":483 /* "Recode.pyx":484
* UNTRANSLATABLE = RECODE_UNTRANSLATABLE * UNTRANSLATABLE = RECODE_UNTRANSLATABLE
* INVALID_INPUT = RECODE_INVALID_INPUT * INVALID_INPUT = RECODE_INVALID_INPUT
* SYSTEM_ERROR = RECODE_SYSTEM_ERROR # <<<<<<<<<<<<<< * SYSTEM_ERROR = RECODE_SYSTEM_ERROR # <<<<<<<<<<<<<<
* USER_ERROR = RECODE_USER_ERROR * USER_ERROR = RECODE_USER_ERROR
* INTERNAL_ERROR = RECODE_INTERNAL_ERROR * INTERNAL_ERROR = RECODE_INTERNAL_ERROR
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_SYSTEM_ERROR); if (unli kely(!__pyx_t_1)) __PYX_ERR(1, 483, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_SYSTEM_ERROR); if (unli kely(!__pyx_t_1)) __PYX_ERR(1, 484, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SYSTEM_ERROR, __pyx_t_1) < 0) __PYX_ERR( 1, 483, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SYSTEM_ERROR, __pyx_t_1) < 0) __PYX_ERR( 1, 484, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":484 /* "Recode.pyx":485
* INVALID_INPUT = RECODE_INVALID_INPUT * INVALID_INPUT = RECODE_INVALID_INPUT
* SYSTEM_ERROR = RECODE_SYSTEM_ERROR * SYSTEM_ERROR = RECODE_SYSTEM_ERROR
* USER_ERROR = RECODE_USER_ERROR # <<<<<<<<<<<<<< * USER_ERROR = RECODE_USER_ERROR # <<<<<<<<<<<<<<
* INTERNAL_ERROR = RECODE_INTERNAL_ERROR * INTERNAL_ERROR = RECODE_INTERNAL_ERROR
* MAXIMUM_ERROR = RECODE_MAXIMUM_ERROR * MAXIMUM_ERROR = RECODE_MAXIMUM_ERROR
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_USER_ERROR); if (unlike ly(!__pyx_t_1)) __PYX_ERR(1, 484, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_USER_ERROR); if (unlike ly(!__pyx_t_1)) __PYX_ERR(1, 485, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_USER_ERROR, __pyx_t_1) < 0) __PYX_ERR(1, 484, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_USER_ERROR, __pyx_t_1) < 0) __PYX_ERR(1, 485, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":485 /* "Recode.pyx":486
* SYSTEM_ERROR = RECODE_SYSTEM_ERROR * SYSTEM_ERROR = RECODE_SYSTEM_ERROR
* USER_ERROR = RECODE_USER_ERROR * USER_ERROR = RECODE_USER_ERROR
* INTERNAL_ERROR = RECODE_INTERNAL_ERROR # <<<<<<<<<<<<<< * INTERNAL_ERROR = RECODE_INTERNAL_ERROR # <<<<<<<<<<<<<<
* MAXIMUM_ERROR = RECODE_MAXIMUM_ERROR * MAXIMUM_ERROR = RECODE_MAXIMUM_ERROR
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_INTERNAL_ERROR); if (un likely(!__pyx_t_1)) __PYX_ERR(1, 485, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_INTERNAL_ERROR); if (un likely(!__pyx_t_1)) __PYX_ERR(1, 486, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_INTERNAL_ERROR, __pyx_t_1) < 0) __PYX_ER R(1, 485, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_INTERNAL_ERROR, __pyx_t_1) < 0) __PYX_ER R(1, 486, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":486 /* "Recode.pyx":487
* USER_ERROR = RECODE_USER_ERROR * USER_ERROR = RECODE_USER_ERROR
* INTERNAL_ERROR = RECODE_INTERNAL_ERROR * INTERNAL_ERROR = RECODE_INTERNAL_ERROR
* MAXIMUM_ERROR = RECODE_MAXIMUM_ERROR # <<<<<<<<<<<<<< * MAXIMUM_ERROR = RECODE_MAXIMUM_ERROR # <<<<<<<<<<<<<<
* *
* NO_FORMAT = RECODE_NO_FORMAT * NO_FORMAT = RECODE_NO_FORMAT
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_MAXIMUM_ERROR); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 486, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_error(RECODE_MAXIMUM_ERROR); if (unl ikely(!__pyx_t_1)) __PYX_ERR(1, 487, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAXIMUM_ERROR, __pyx_t_1) < 0) __PYX_ERR (1, 486, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAXIMUM_ERROR, __pyx_t_1) < 0) __PYX_ERR (1, 487, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":488 /* "Recode.pyx":489
* MAXIMUM_ERROR = RECODE_MAXIMUM_ERROR * MAXIMUM_ERROR = RECODE_MAXIMUM_ERROR
* *
* NO_FORMAT = RECODE_NO_FORMAT # <<<<<<<<<<<<<< * NO_FORMAT = RECODE_NO_FORMAT # <<<<<<<<<<<<<<
* DECIMAL_FORMAT = RECODE_DECIMAL_FORMAT * DECIMAL_FORMAT = RECODE_DECIMAL_FORMAT
* OCTAL_FORMAT = RECODE_OCTAL_FORMAT * OCTAL_FORMAT = RECODE_OCTAL_FORMAT
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_NO_FORMAT); if (u nlikely(!__pyx_t_1)) __PYX_ERR(1, 488, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_NO_FORMAT); if (u nlikely(!__pyx_t_1)) __PYX_ERR(1, 489, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_FORMAT, __pyx_t_1) < 0) __PYX_ERR(1, 488, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_FORMAT, __pyx_t_1) < 0) __PYX_ERR(1, 489, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":489 /* "Recode.pyx":490
* *
* NO_FORMAT = RECODE_NO_FORMAT * NO_FORMAT = RECODE_NO_FORMAT
* DECIMAL_FORMAT = RECODE_DECIMAL_FORMAT # <<<<<<<<<<<<<< * DECIMAL_FORMAT = RECODE_DECIMAL_FORMAT # <<<<<<<<<<<<<<
* OCTAL_FORMAT = RECODE_OCTAL_FORMAT * OCTAL_FORMAT = RECODE_OCTAL_FORMAT
* HEXADECIMAL_FORMAT = RECODE_HEXADECIMAL_FORMAT * HEXADECIMAL_FORMAT = RECODE_HEXADECIMAL_FORMAT
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_DECIMAL_FORMAT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 489, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_DECIMAL_FORMAT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 490, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_DECIMAL_FORMAT, __pyx_t_1) < 0) __PYX_ER R(1, 489, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_DECIMAL_FORMAT, __pyx_t_1) < 0) __PYX_ER R(1, 490, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":490 /* "Recode.pyx":491
* NO_FORMAT = RECODE_NO_FORMAT * NO_FORMAT = RECODE_NO_FORMAT
* DECIMAL_FORMAT = RECODE_DECIMAL_FORMAT * DECIMAL_FORMAT = RECODE_DECIMAL_FORMAT
* OCTAL_FORMAT = RECODE_OCTAL_FORMAT # <<<<<<<<<<<<<< * OCTAL_FORMAT = RECODE_OCTAL_FORMAT # <<<<<<<<<<<<<<
* HEXADECIMAL_FORMAT = RECODE_HEXADECIMAL_FORMAT * HEXADECIMAL_FORMAT = RECODE_HEXADECIMAL_FORMAT
* FULL_FORMAT = RECODE_FULL_FORMAT * FULL_FORMAT = RECODE_FULL_FORMAT
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_OCTAL_FORMAT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 490, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_OCTAL_FORMAT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 491, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_OCTAL_FORMAT, __pyx_t_1) < 0) __PYX_ERR( 1, 490, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_OCTAL_FORMAT, __pyx_t_1) < 0) __PYX_ERR( 1, 491, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":491 /* "Recode.pyx":492
* DECIMAL_FORMAT = RECODE_DECIMAL_FORMAT * DECIMAL_FORMAT = RECODE_DECIMAL_FORMAT
* OCTAL_FORMAT = RECODE_OCTAL_FORMAT * OCTAL_FORMAT = RECODE_OCTAL_FORMAT
* HEXADECIMAL_FORMAT = RECODE_HEXADECIMAL_FORMAT # <<<<<<<<<<<<<< * HEXADECIMAL_FORMAT = RECODE_HEXADECIMAL_FORMAT # <<<<<<<<<<<<<<
* FULL_FORMAT = RECODE_FULL_FORMAT * FULL_FORMAT = RECODE_FULL_FORMAT
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_HEXADECIMAL_FORMA T); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 491, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_HEXADECIMAL_FORMA T); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 492, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_HEXADECIMAL_FORMAT, __pyx_t_1) < 0) __PY X_ERR(1, 491, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_HEXADECIMAL_FORMAT, __pyx_t_1) < 0) __PY X_ERR(1, 492, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":492 /* "Recode.pyx":493
* OCTAL_FORMAT = RECODE_OCTAL_FORMAT * OCTAL_FORMAT = RECODE_OCTAL_FORMAT
* HEXADECIMAL_FORMAT = RECODE_HEXADECIMAL_FORMAT * HEXADECIMAL_FORMAT = RECODE_HEXADECIMAL_FORMAT
* FULL_FORMAT = RECODE_FULL_FORMAT # <<<<<<<<<<<<<< * FULL_FORMAT = RECODE_FULL_FORMAT # <<<<<<<<<<<<<<
* *
* NO_LANGUAGE = RECODE_NO_LANGUAGE * NO_LANGUAGE = RECODE_NO_LANGUAGE
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_FULL_FORMAT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 492, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_list_format(RECODE_FULL_FORMAT); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 493, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_FULL_FORMAT, __pyx_t_1) < 0) __PYX_ERR(1 , 492, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_FULL_FORMAT, __pyx_t_1) < 0) __PYX_ERR(1 , 493, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":494 /* "Recode.pyx":495
* FULL_FORMAT = RECODE_FULL_FORMAT * FULL_FORMAT = RECODE_FULL_FORMAT
* *
* NO_LANGUAGE = RECODE_NO_LANGUAGE # <<<<<<<<<<<<<< * NO_LANGUAGE = RECODE_NO_LANGUAGE # <<<<<<<<<<<<<<
* LANGUAGE_C = RECODE_LANGUAGE_C * LANGUAGE_C = RECODE_LANGUAGE_C
* LANGUAGE_PERL = RECODE_LANGUAGE_PERL * LANGUAGE_PERL = RECODE_LANGUAGE_PERL
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_programming_language(RECODE_NO_LANGU AGE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 494, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_programming_language(RECODE_NO_LANGU AGE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 495, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_LANGUAGE, __pyx_t_1) < 0) __PYX_ERR(1 , 494, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_LANGUAGE, __pyx_t_1) < 0) __PYX_ERR(1 , 495, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":495 /* "Recode.pyx":496
* *
* NO_LANGUAGE = RECODE_NO_LANGUAGE * NO_LANGUAGE = RECODE_NO_LANGUAGE
* LANGUAGE_C = RECODE_LANGUAGE_C # <<<<<<<<<<<<<< * LANGUAGE_C = RECODE_LANGUAGE_C # <<<<<<<<<<<<<<
* LANGUAGE_PERL = RECODE_LANGUAGE_PERL * LANGUAGE_PERL = RECODE_LANGUAGE_PERL
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_programming_language(RECODE_LANGUAGE _C); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 495, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_programming_language(RECODE_LANGUAGE _C); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 496, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_LANGUAGE_C, __pyx_t_1) < 0) __PYX_ERR(1, 495, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_LANGUAGE_C, __pyx_t_1) < 0) __PYX_ERR(1, 496, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":496 /* "Recode.pyx":497
* NO_LANGUAGE = RECODE_NO_LANGUAGE * NO_LANGUAGE = RECODE_NO_LANGUAGE
* LANGUAGE_C = RECODE_LANGUAGE_C * LANGUAGE_C = RECODE_LANGUAGE_C
* LANGUAGE_PERL = RECODE_LANGUAGE_PERL # <<<<<<<<<<<<<< * LANGUAGE_PERL = RECODE_LANGUAGE_PERL # <<<<<<<<<<<<<<
* *
* NUL = NUL_ * NUL = NUL_
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__recode_programming_language(RECODE_LANGUAGE _PERL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 496, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__recode_programming_language(RECODE_LANGUAGE _PERL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 497, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_LANGUAGE_PERL, __pyx_t_1) < 0) __PYX_ERR (1, 496, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_LANGUAGE_PERL, __pyx_t_1) < 0) __PYX_ERR (1, 497, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":498 /* "Recode.pyx":499
* LANGUAGE_PERL = RECODE_LANGUAGE_PERL * LANGUAGE_PERL = RECODE_LANGUAGE_PERL
* *
* NUL = NUL_ # <<<<<<<<<<<<<< * NUL = NUL_ # <<<<<<<<<<<<<<
* STRIP_SIZE = STRIP_SIZE_ * STRIP_SIZE = STRIP_SIZE_
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(NUL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 498, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(NUL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 499, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NUL, __pyx_t_1) < 0) __PYX_ERR(1, 498, _ _pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NUL, __pyx_t_1) < 0) __PYX_ERR(1, 499, _ _pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":499 /* "Recode.pyx":500
* *
* NUL = NUL_ * NUL = NUL_
* STRIP_SIZE = STRIP_SIZE_ # <<<<<<<<<<<<<< * STRIP_SIZE = STRIP_SIZE_ # <<<<<<<<<<<<<<
* *
* SYMBOL_CREATE_CHARSET = SYMBOL_CREATE_CHARSET_ * SYMBOL_CREATE_CHARSET = SYMBOL_CREATE_CHARSET_
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(STRIP_SIZE); if (unlikely(!__pyx_t_1)) __PYX_ ERR(1, 499, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(STRIP_SIZE); if (unlikely(!__pyx_t_1)) __PYX_ ERR(1, 500, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_STRIP_SIZE, __pyx_t_1) < 0) __PYX_ERR(1, 499, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_STRIP_SIZE, __pyx_t_1) < 0) __PYX_ERR(1, 500, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":501 /* "Recode.pyx":502
* STRIP_SIZE = STRIP_SIZE_ * STRIP_SIZE = STRIP_SIZE_
* *
* SYMBOL_CREATE_CHARSET = SYMBOL_CREATE_CHARSET_ # <<<<<<<<<<<<<< * SYMBOL_CREATE_CHARSET = SYMBOL_CREATE_CHARSET_ # <<<<<<<<<<<<<<
* SYMBOL_CREATE_DATA_SURFACE = SYMBOL_CREATE_DATA_SURFACE_ * SYMBOL_CREATE_DATA_SURFACE = SYMBOL_CREATE_DATA_SURFACE_
* ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_ * ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(SYMBOL_CREATE_CHARSET); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 501, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(SYMBOL_CREATE_CHARSET); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 502, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SYMBOL_CREATE_CHARSET, __pyx_t_1) < 0) _ _PYX_ERR(1, 501, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SYMBOL_CREATE_CHARSET, __pyx_t_1) < 0) _ _PYX_ERR(1, 502, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":502 /* "Recode.pyx":503
* *
* SYMBOL_CREATE_CHARSET = SYMBOL_CREATE_CHARSET_ * SYMBOL_CREATE_CHARSET = SYMBOL_CREATE_CHARSET_
* SYMBOL_CREATE_DATA_SURFACE = SYMBOL_CREATE_DATA_SURFACE_ # <<<<<< <<<<<<<< * SYMBOL_CREATE_DATA_SURFACE = SYMBOL_CREATE_DATA_SURFACE_ # <<<<<< <<<<<<<<
* ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_ * ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_
* ALIAS_FIND_AS_SURFACE = ALIAS_FIND_AS_SURFACE_ * ALIAS_FIND_AS_SURFACE = ALIAS_FIND_AS_SURFACE_
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(SYMBOL_CREATE_DATA_SURFACE) ; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 502, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(SYMBOL_CREATE_DATA_SURFACE) ; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 503, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_SYMBOL_CREATE_DATA_SURFACE, __pyx_t_1) < 0) __PYX_ERR(1, 502, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_SYMBOL_CREATE_DATA_SURFACE, __pyx_t_1) < 0) __PYX_ERR(1, 503, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":503 /* "Recode.pyx":504
* SYMBOL_CREATE_CHARSET = SYMBOL_CREATE_CHARSET_ * SYMBOL_CREATE_CHARSET = SYMBOL_CREATE_CHARSET_
* SYMBOL_CREATE_DATA_SURFACE = SYMBOL_CREATE_DATA_SURFACE_ * SYMBOL_CREATE_DATA_SURFACE = SYMBOL_CREATE_DATA_SURFACE_
* ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_ # <<<<<<<<<<<<<< * ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_ # <<<<<<<<<<<<<<
* ALIAS_FIND_AS_SURFACE = ALIAS_FIND_AS_SURFACE_ * ALIAS_FIND_AS_SURFACE = ALIAS_FIND_AS_SURFACE_
* ALIAS_FIND_AS_EITHER = ALIAS_FIND_AS_EITHER_ * ALIAS_FIND_AS_EITHER = ALIAS_FIND_AS_EITHER_
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(ALIAS_FIND_AS_CHARSET); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 503, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(ALIAS_FIND_AS_CHARSET); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 504, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_ALIAS_FIND_AS_CHARSET, __pyx_t_1) < 0) _ _PYX_ERR(1, 503, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_ALIAS_FIND_AS_CHARSET, __pyx_t_1) < 0) _ _PYX_ERR(1, 504, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":504 /* "Recode.pyx":505
* SYMBOL_CREATE_DATA_SURFACE = SYMBOL_CREATE_DATA_SURFACE_ * SYMBOL_CREATE_DATA_SURFACE = SYMBOL_CREATE_DATA_SURFACE_
* ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_ * ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_
* ALIAS_FIND_AS_SURFACE = ALIAS_FIND_AS_SURFACE_ # <<<<<<<<<<<<<< * ALIAS_FIND_AS_SURFACE = ALIAS_FIND_AS_SURFACE_ # <<<<<<<<<<<<<<
* ALIAS_FIND_AS_EITHER = ALIAS_FIND_AS_EITHER_ * ALIAS_FIND_AS_EITHER = ALIAS_FIND_AS_EITHER_
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(ALIAS_FIND_AS_SURFACE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 504, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(ALIAS_FIND_AS_SURFACE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 505, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_ALIAS_FIND_AS_SURFACE, __pyx_t_1) < 0) _ _PYX_ERR(1, 504, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_ALIAS_FIND_AS_SURFACE, __pyx_t_1) < 0) _ _PYX_ERR(1, 505, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":505 /* "Recode.pyx":506
* ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_ * ALIAS_FIND_AS_CHARSET = ALIAS_FIND_AS_CHARSET_
* ALIAS_FIND_AS_SURFACE = ALIAS_FIND_AS_SURFACE_ * ALIAS_FIND_AS_SURFACE = ALIAS_FIND_AS_SURFACE_
* ALIAS_FIND_AS_EITHER = ALIAS_FIND_AS_EITHER_ # <<<<<<<<<<<<<< * ALIAS_FIND_AS_EITHER = ALIAS_FIND_AS_EITHER_ # <<<<<<<<<<<<<<
* *
* xDONE = DONE * xDONE = DONE
*/ */
__pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(ALIAS_FIND_AS_EITHER); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 505, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_enum__alias_find_type(ALIAS_FIND_AS_EITHER); if ( unlikely(!__pyx_t_1)) __PYX_ERR(1, 506, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_ALIAS_FIND_AS_EITHER, __pyx_t_1) < 0) __ PYX_ERR(1, 505, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_ALIAS_FIND_AS_EITHER, __pyx_t_1) < 0) __ PYX_ERR(1, 506, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":507 /* "Recode.pyx":508
* ALIAS_FIND_AS_EITHER = ALIAS_FIND_AS_EITHER_ * ALIAS_FIND_AS_EITHER = ALIAS_FIND_AS_EITHER_
* *
* xDONE = DONE # <<<<<<<<<<<<<< * xDONE = DONE # <<<<<<<<<<<<<<
* xELSE = ELSE_ * xELSE = ELSE_
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(DONE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 507, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(DONE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 508, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_xDONE, __pyx_t_1) < 0) __PYX_ERR(1, 507, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_xDONE, __pyx_t_1) < 0) __PYX_ERR(1, 508, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":508 /* "Recode.pyx":509
* *
* xDONE = DONE * xDONE = DONE
* xELSE = ELSE_ # <<<<<<<<<<<<<< * xELSE = ELSE_ # <<<<<<<<<<<<<<
* *
* REPLACEMENT_CHARACTER = REPLACEMENT_CHARACTER_ * REPLACEMENT_CHARACTER = REPLACEMENT_CHARACTER_
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(ELSE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 508, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(ELSE); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 509, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_xELSE, __pyx_t_1) < 0) __PYX_ERR(1, 508, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_xELSE, __pyx_t_1) < 0) __PYX_ERR(1, 509, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":510 /* "Recode.pyx":511
* xELSE = ELSE_ * xELSE = ELSE_
* *
* REPLACEMENT_CHARACTER = REPLACEMENT_CHARACTER_ # <<<<<<<<<<<<<< * REPLACEMENT_CHARACTER = REPLACEMENT_CHARACTER_ # <<<<<<<<<<<<<<
* NOT_A_CHARACTER = NOT_A_CHARACTER_ * NOT_A_CHARACTER = NOT_A_CHARACTER_
* BYTE_ORDER_MARK = BYTE_ORDER_MARK_ * BYTE_ORDER_MARK = BYTE_ORDER_MARK_
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(REPLACEMENT_CHARACTER); if (unlikely(!__pyx_t _1)) __PYX_ERR(1, 510, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(REPLACEMENT_CHARACTER); if (unlikely(!__pyx_t _1)) __PYX_ERR(1, 511, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_REPLACEMENT_CHARACTER, __pyx_t_1) < 0) _ _PYX_ERR(1, 510, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_REPLACEMENT_CHARACTER, __pyx_t_1) < 0) _ _PYX_ERR(1, 511, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":511 /* "Recode.pyx":512
* *
* REPLACEMENT_CHARACTER = REPLACEMENT_CHARACTER_ * REPLACEMENT_CHARACTER = REPLACEMENT_CHARACTER_
* NOT_A_CHARACTER = NOT_A_CHARACTER_ # <<<<<<<<<<<<<< * NOT_A_CHARACTER = NOT_A_CHARACTER_ # <<<<<<<<<<<<<<
* BYTE_ORDER_MARK = BYTE_ORDER_MARK_ * BYTE_ORDER_MARK = BYTE_ORDER_MARK_
* BYTE_ORDER_MARK_SWAPPED = BYTE_ORDER_MARK_SWAPPED_ * BYTE_ORDER_MARK_SWAPPED = BYTE_ORDER_MARK_SWAPPED_
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(NOT_A_CHARACTER); if (unlikely(!__pyx_t_1)) _ _PYX_ERR(1, 511, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(NOT_A_CHARACTER); if (unlikely(!__pyx_t_1)) _ _PYX_ERR(1, 512, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NOT_A_CHARACTER, __pyx_t_1) < 0) __PYX_E RR(1, 511, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_NOT_A_CHARACTER, __pyx_t_1) < 0) __PYX_E RR(1, 512, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":512 /* "Recode.pyx":513
* REPLACEMENT_CHARACTER = REPLACEMENT_CHARACTER_ * REPLACEMENT_CHARACTER = REPLACEMENT_CHARACTER_
* NOT_A_CHARACTER = NOT_A_CHARACTER_ * NOT_A_CHARACTER = NOT_A_CHARACTER_
* BYTE_ORDER_MARK = BYTE_ORDER_MARK_ # <<<<<<<<<<<<<< * BYTE_ORDER_MARK = BYTE_ORDER_MARK_ # <<<<<<<<<<<<<<
* BYTE_ORDER_MARK_SWAPPED = BYTE_ORDER_MARK_SWAPPED_ * BYTE_ORDER_MARK_SWAPPED = BYTE_ORDER_MARK_SWAPPED_
* *
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(BYTE_ORDER_MARK); if (unlikely(!__pyx_t_1)) _ _PYX_ERR(1, 512, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(BYTE_ORDER_MARK); if (unlikely(!__pyx_t_1)) _ _PYX_ERR(1, 513, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_BYTE_ORDER_MARK, __pyx_t_1) < 0) __PYX_E RR(1, 512, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_BYTE_ORDER_MARK, __pyx_t_1) < 0) __PYX_E RR(1, 513, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":513 /* "Recode.pyx":514
* NOT_A_CHARACTER = NOT_A_CHARACTER_ * NOT_A_CHARACTER = NOT_A_CHARACTER_
* BYTE_ORDER_MARK = BYTE_ORDER_MARK_ * BYTE_ORDER_MARK = BYTE_ORDER_MARK_
* BYTE_ORDER_MARK_SWAPPED = BYTE_ORDER_MARK_SWAPPED_ # <<<<<<<<<<<< << * BYTE_ORDER_MARK_SWAPPED = BYTE_ORDER_MARK_SWAPPED_ # <<<<<<<<<<<< <<
* *
* AUTO_ABORT_FLAG = RECODE_AUTO_ABORT_FLAG * AUTO_ABORT_FLAG = RECODE_AUTO_ABORT_FLAG
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(BYTE_ORDER_MARK_SWAPPED); if (unlikely(!__pyx _t_1)) __PYX_ERR(1, 513, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(BYTE_ORDER_MARK_SWAPPED); if (unlikely(!__pyx _t_1)) __PYX_ERR(1, 514, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_BYTE_ORDER_MARK_SWAPPED, __pyx_t_1) < 0) __PYX_ERR(1, 513, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_BYTE_ORDER_MARK_SWAPPED, __pyx_t_1) < 0) __PYX_ERR(1, 514, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":515 /* "Recode.pyx":516
* BYTE_ORDER_MARK_SWAPPED = BYTE_ORDER_MARK_SWAPPED_ * BYTE_ORDER_MARK_SWAPPED = BYTE_ORDER_MARK_SWAPPED_
* *
* AUTO_ABORT_FLAG = RECODE_AUTO_ABORT_FLAG # <<<<<<<<<<<<<< * AUTO_ABORT_FLAG = RECODE_AUTO_ABORT_FLAG # <<<<<<<<<<<<<<
* NO_ICONV_FLAG = RECODE_NO_ICONV_FLAG * NO_ICONV_FLAG = RECODE_NO_ICONV_FLAG
* * STRICT_MAPPING_FLAG = RECODE_STRICT_MAPPING_FLAG
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(RECODE_AUTO_ABORT_FLAG); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 515, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(RECODE_AUTO_ABORT_FLAG); if (unlikely(!__pyx_ t_1)) __PYX_ERR(1, 516, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_AUTO_ABORT_FLAG, __pyx_t_1) < 0) __PYX_E RR(1, 515, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_AUTO_ABORT_FLAG, __pyx_t_1) < 0) __PYX_E RR(1, 516, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":516 /* "Recode.pyx":517
* *
* AUTO_ABORT_FLAG = RECODE_AUTO_ABORT_FLAG * AUTO_ABORT_FLAG = RECODE_AUTO_ABORT_FLAG
* NO_ICONV_FLAG = RECODE_NO_ICONV_FLAG # <<<<<<<<<<<<<< * NO_ICONV_FLAG = RECODE_NO_ICONV_FLAG # <<<<<<<<<<<<<<
* STRICT_MAPPING_FLAG = RECODE_STRICT_MAPPING_FLAG
*
*/
__pyx_t_1 = __Pyx_PyInt_From_int(RECODE_NO_ICONV_FLAG); if (unlikely(!__pyx_t_
1)) __PYX_ERR(1, 517, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_ICONV_FLAG, __pyx_t_1) < 0) __PYX_ERR
(1, 517, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":518
* AUTO_ABORT_FLAG = RECODE_AUTO_ABORT_FLAG
* NO_ICONV_FLAG = RECODE_NO_ICONV_FLAG
* STRICT_MAPPING_FLAG = RECODE_STRICT_MAPPING_FLAG # <<<<<<<<<<<<<<
* *
* ## Recode library at OUTER level. * ## Recode library at OUTER level.
*/ */
__pyx_t_1 = __Pyx_PyInt_From_int(RECODE_NO_ICONV_FLAG); if (unlikely(!__pyx_t_ 1)) __PYX_ERR(1, 516, __pyx_L1_error) __pyx_t_1 = __Pyx_PyInt_From_int(RECODE_STRICT_MAPPING_FLAG); if (unlikely(!__ pyx_t_1)) __PYX_ERR(1, 518, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
if (PyDict_SetItem(__pyx_d, __pyx_n_s_NO_ICONV_FLAG, __pyx_t_1) < 0) __PYX_ERR (1, 516, __pyx_L1_error) if (PyDict_SetItem(__pyx_d, __pyx_n_s_STRICT_MAPPING_FLAG, __pyx_t_1) < 0) __P YX_ERR(1, 518, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "Recode.pyx":566 /* "Recode.pyx":570
* return list * return list
* *
* def concise_charset(self, format=NO_FORMAT): # <<<<<<<<<<<<<< * def concise_charset(self, format=NO_FORMAT): # <<<<<<<<<<<<<<
* ok = list_concise_charset(self.outer, NULL, format) * ok = list_concise_charset(self.outer, NULL, format)
* if not ok: * if not ok:
*/ */
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NO_FORMAT); if (unlikely(!__pyx _t_1)) __PYX_ERR(1, 566, __pyx_L1_error) __Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_NO_FORMAT); if (unlikely(!__pyx _t_1)) __PYX_ERR(1, 570, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_1);
__pyx_k_ = __pyx_t_1; __pyx_k_ = __pyx_t_1;
__Pyx_GIVEREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1);
__pyx_t_1 = 0; __pyx_t_1 = 0;
/* "Recode.pyx":1 /* "Recode.pyx":1
* # -*- coding: utf-8 -*- # <<<<<<<<<<<<<< * # -*- coding: utf-8 -*- # <<<<<<<<<<<<<<
* # Python interface to the Recode C library, for testing. * # Python interface to the Recode C library, for testing.
* # Copyright 1996-2000, 2008 Free Software Foundation, Inc. * # Copyright 1996-2000, 2008 Free Software Foundation, Inc.
*/ */
 End of changes. 410 change blocks. 
421 lines changed or deleted 468 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)