1use libc::size_t;
2use std::os::raw::c_void;
3
4extern "C" {
5 #[cfg_attr(PyPy, link_name = "PyPyMem_Malloc")]
6 pub fn PyMem_Malloc(size: size_t) -> *mut c_void;
7 #[cfg_attr(PyPy, link_name = "PyPyMem_Calloc")]
8 pub fn PyMem_Calloc(nelem: size_t, elsize: size_t) -> *mut c_void;
9 #[cfg_attr(PyPy, link_name = "PyPyMem_Realloc")]
10 pub fn PyMem_Realloc(ptr: *mut c_void, new_size: size_t) -> *mut c_void;
11 #[cfg_attr(PyPy, link_name = "PyPyMem_Free")]
12 pub fn PyMem_Free(ptr: *mut c_void);
13}
14