jpayne@69: jpayne@69: /* Interface for marshal.c */ jpayne@69: jpayne@69: #ifndef Py_MARSHAL_H jpayne@69: #define Py_MARSHAL_H jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #define Py_MARSHAL_VERSION 4 jpayne@69: jpayne@69: PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int); jpayne@69: PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int); jpayne@69: PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int); jpayne@69: jpayne@69: #ifndef Py_LIMITED_API jpayne@69: PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *); jpayne@69: PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *); jpayne@69: PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *); jpayne@69: PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *); jpayne@69: #endif jpayne@69: PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(const char *, jpayne@69: Py_ssize_t); jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: #endif /* !Py_MARSHAL_H */