Skip to content

Commit 075dbec

Browse files
committed
Merge pull request #58 from msgpack/refactor
Remove unnecessary type declaration.
2 parents 5c90f95 + 0faa1bb commit 075dbec

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

msgpack/_packer.pyx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@
22
#cython: embedsignature=True
33

44
from 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-
115
from libc.stdlib cimport *
126
from libc.string cimport *
137
from libc.limits cimport *

msgpack/_unpacker.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
from cpython cimport *
55
cdef 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

0 commit comments

Comments
 (0)