mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-10-31 09:30:53 +00:00 
			
		
		
		
	Merge pull request #58 from msgpack/refactor
Remove unnecessary type declaration.
This commit is contained in:
		
						commit
						075dbecc39
					
				
					 2 changed files with 1 additions and 8 deletions
				
			
		|  | @ -2,12 +2,6 @@ | ||||||
| #cython: embedsignature=True | #cython: embedsignature=True | ||||||
| 
 | 
 | ||||||
| from cpython cimport * | 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.stdlib cimport * | ||||||
| from libc.string cimport * | from libc.string cimport * | ||||||
| from libc.limits cimport * | from libc.limits cimport * | ||||||
|  |  | ||||||
|  | @ -3,7 +3,6 @@ | ||||||
| 
 | 
 | ||||||
| from cpython cimport * | from cpython cimport * | ||||||
| cdef extern from "Python.h": | cdef extern from "Python.h": | ||||||
|     ctypedef char* const_char_ptr "const char*" |  | ||||||
|     ctypedef char* const_void_ptr "const void*" |     ctypedef char* const_void_ptr "const void*" | ||||||
|     ctypedef struct PyObject |     ctypedef struct PyObject | ||||||
|     cdef int PyObject_AsReadBuffer(object o, const_void_ptr* buff, Py_ssize_t* buf_len) except -1 |     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 |         unsigned int ct | ||||||
|         PyObject* key |         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 |                                size_t len, size_t* off) except? -1 | ||||||
|     execute_fn unpack_construct |     execute_fn unpack_construct | ||||||
|     execute_fn unpack_skip |     execute_fn unpack_skip | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 INADA Naoki
						INADA Naoki