python27_sys/pyarena.rs
1use libc::{c_int, c_void, size_t};
2
3use crate::object::PyObject;
4
5#[allow(missing_copy_implementations)]
6#[repr(C)]
7pub struct PyArena {
8 _private: [u8; 0],
9}
10
11#[cfg_attr(windows, link(name = "pythonXY"))]
12extern "C" {
13 pub fn PyArena_New() -> *mut PyArena;
14 pub fn PyArena_Free(arg1: *mut PyArena);
15 pub fn PyArena_Malloc(arg1: *mut PyArena, size: size_t) -> *mut c_void;
16 pub fn PyArena_AddPyObject(arg1: *mut PyArena, arg2: *mut PyObject) -> c_int;
17}