1 2 3 4 5 6 7 8
use libc::{c_void, size_t}; #[cfg_attr(windows, link(name = "pythonXY"))] extern "C" { pub fn PyMem_Malloc(n: size_t) -> *mut c_void; pub fn PyMem_Realloc(p: *mut c_void, n: size_t) -> *mut c_void; pub fn PyMem_Free(p: *mut c_void); }