File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed
Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 22# cython: embedsignature=True
33
44from cpython cimport *
5- cdef extern from " Python.h" :
6- ctypedef char * const_char_ptr " const char*"
7- ctypedef char * const_void_ptr " const void*"
8- ctypedef struct PyObject
9- cdef int PyObject_AsReadBuffer(object o, const_void_ptr* buff, Py_ssize_t* buf_len) except - 1
10-
115from libc.stdlib cimport *
126from libc.string cimport *
137from libc.limits cimport *
Original file line number Diff line number Diff line change 33
44from cpython cimport *
55cdef extern from " Python.h" :
6- ctypedef char * const_char_ptr " const char*"
76 ctypedef char * const_void_ptr " const void*"
87 ctypedef struct PyObject
98 cdef int PyObject_AsReadBuffer(object o, const_void_ptr* buff, Py_ssize_t* buf_len) except - 1
@@ -37,7 +36,7 @@ cdef extern from "unpack.h":
3736 unsigned int ct
3837 PyObject* key
3938
40- ctypedef int (* execute_fn)(unpack_context* ctx, const_char_ptr data,
39+ ctypedef int (* execute_fn)(unpack_context* ctx, const char * data,
4140 size_t len , size_t* off) except ? - 1
4241 execute_fn unpack_construct
4342 execute_fn unpack_skip
You can’t perform that action at this time.
0 commit comments