CDCF_IGNEQMID
CDCF_IGNZPAD
CDCF_IGNNEWL
+ CDCF_IGNSPC
CDCF_IGNINVCH
CDCF_IGNJUNK
IGNEQMID = CDCF_IGNEQMID
IGNZPAD = CDCF_IGNZPAD
IGNNEWL = CDCF_IGNNEWL
+ IGNSPC = CDCF_IGNSPC
IGNINVCH = CDCF_IGNINVCH
IGNJUNK = CDCF_IGNJUNK
me.c.ops.destroy(me.c)
cdef code(me, text, int finishp):
cdef void *p
- cdef int len
+ cdef Py_ssize_t len
cdef dstr d
cdef int err
if me.c is NULL:
raise ValueError, 'Encoding finished'
DCREATE(&d)
try:
- PyObject_AsReadBuffer(text, &p, &len)
+ PyObject_AsReadBuffer(text, <cvp *>&p, &len)
code(me.c, p, len, &d)
if finishp:
code(me.c, NULL, 0, &d)