pyo3/python27-sys/src/pyarena.rs

16 lines
390 B
Rust
Raw Normal View History

use libc::{c_void, c_int, size_t};
use object::PyObject;
#[allow(missing_copy_implementations)]
pub enum PyArena { }
extern "C" {
pub fn PyArena_New() -> *mut PyArena;
pub fn PyArena_Free(arg1: *mut PyArena);
pub fn PyArena_Malloc(arg1: *mut PyArena, size: size_t)
-> *mut c_void;
pub fn PyArena_AddPyObject(arg1: *mut PyArena, arg2: *mut PyObject)
-> c_int;
}