Merge pull request #66 from Idolf/pub-string

Mark PyStringObject and PyBytesObject as pub
This commit is contained in:
Daniel Grunwald 2016-11-13 16:26:11 +01:00 committed by GitHub
commit e644f24a2b
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
//use stringobject::PyStringObject as PyBytesObject;
pub use stringobject::PyStringObject as PyBytesObject;
pub use stringobject::PyString_Type as PyBytes_Type;
pub use stringobject::PyString_Check as PyBytes_Check;
pub use stringobject::PyString_CheckExact as PyBytes_CheckExact;

View File

@ -4,7 +4,7 @@ use object::*;
#[repr(C)]
#[allow(missing_copy_implementations)]
struct PyStringObject {
pub struct PyStringObject {
#[cfg(py_sys_config="Py_TRACE_REFS")]
pub _ob_next: *mut PyObject,
#[cfg(py_sys_config="Py_TRACE_REFS")]