diff options
author | INADA Naoki <songofacandy@gmail.com> | 2013-04-07 10:03:46 -0700 |
---|---|---|
committer | INADA Naoki <songofacandy@gmail.com> | 2013-04-07 10:03:46 -0700 |
commit | 075dbecc39cbd88a05935578bb5d806809a752e8 (patch) | |
tree | 11d0371803d795e630f76f580d834ab98d14fbdd | |
parent | 5c90f953dae37610f478183849b77413d6ec8e9f (diff) | |
parent | 0faa1bb558ab671b9503c5e22a97c0ec24ab5a19 (diff) | |
download | msgpack-python-075dbecc39cbd88a05935578bb5d806809a752e8.tar.gz |
Merge pull request #58 from msgpack/refactor
Remove unnecessary type declaration.
-rw-r--r-- | msgpack/_packer.pyx | 6 | ||||
-rw-r--r-- | msgpack/_unpacker.pyx | 3 |
2 files changed, 1 insertions, 8 deletions
diff --git a/msgpack/_packer.pyx b/msgpack/_packer.pyx index 562c92c..93323c4 100644 --- a/msgpack/_packer.pyx +++ b/msgpack/_packer.pyx @@ -2,12 +2,6 @@ #cython: embedsignature=True from cpython cimport * -cdef extern from "Python.h": - ctypedef char* const_char_ptr "const char*" - ctypedef char* const_void_ptr "const void*" - ctypedef struct PyObject - cdef int PyObject_AsReadBuffer(object o, const_void_ptr* buff, Py_ssize_t* buf_len) except -1 - from libc.stdlib cimport * from libc.string cimport * from libc.limits cimport * diff --git a/msgpack/_unpacker.pyx b/msgpack/_unpacker.pyx index 5813dc9..1ad71a0 100644 --- a/msgpack/_unpacker.pyx +++ b/msgpack/_unpacker.pyx @@ -3,7 +3,6 @@ from cpython cimport * cdef extern from "Python.h": - ctypedef char* const_char_ptr "const char*" ctypedef char* const_void_ptr "const void*" ctypedef struct PyObject 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": unsigned int ct PyObject* key - ctypedef int (*execute_fn)(unpack_context* ctx, const_char_ptr data, + ctypedef int (*execute_fn)(unpack_context* ctx, const char* data, size_t len, size_t* off) except? -1 execute_fn unpack_construct execute_fn unpack_skip |