"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/Recode.pyx" 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.pyx  (recode-3.7.11):Recode.pyx  (recode-3.7.12)
skipping to change at line 417 skipping to change at line 417
bool get_ucs2(unsigned *, RECODE_SUBTASK) bool get_ucs2(unsigned *, RECODE_SUBTASK)
bool get_ucs4(unsigned *, RECODE_SUBTASK) bool get_ucs4(unsigned *, RECODE_SUBTASK)
bool put_ucs2(unsigned, RECODE_SUBTASK) bool put_ucs2(unsigned, RECODE_SUBTASK)
bool put_ucs4(unsigned, RECODE_SUBTASK) bool put_ucs4(unsigned, RECODE_SUBTASK)
## Recode library at OUTER level. ## Recode library at OUTER level.
enum: enum:
RECODE_AUTO_ABORT_FLAG RECODE_AUTO_ABORT_FLAG
RECODE_NO_ICONV_FLAG RECODE_NO_ICONV_FLAG
RECODE_STRICT_MAPPING_FLAG
RECODE_OUTER recode_new_outer(unsigned) RECODE_OUTER recode_new_outer(unsigned)
bool recode_delete_outer(RECODE_OUTER) bool recode_delete_outer(RECODE_OUTER)
bool list_all_symbols(RECODE_OUTER, RECODE_CONST_SYMBOL) bool list_all_symbols(RECODE_OUTER, RECODE_CONST_SYMBOL)
bool list_concise_charset(RECODE_OUTER, RECODE_CONST_SYMBOL, bool list_concise_charset(RECODE_OUTER, RECODE_CONST_SYMBOL,
recode_list_format) recode_list_format)
bool list_full_charset(RECODE_OUTER, RECODE_CONST_SYMBOL) bool list_full_charset(RECODE_OUTER, RECODE_CONST_SYMBOL)
# Recode library at REQUEST level. # Recode library at REQUEST level.
skipping to change at line 517 skipping to change at line 518
xDONE = DONE xDONE = DONE
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_
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
## Recode library at OUTER level. ## Recode library at OUTER level.
cdef class Outer: cdef class Outer:
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
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
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
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):
recode_delete_outer(self.outer) recode_delete_outer(self.outer)
 End of changes. 3 change blocks. 
0 lines changed or deleted 4 lines changed or added

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