1 2 /* Interface for marshal.c */ 3 4 #ifndef Py_MARSHAL_H 5 #define Py_MARSHAL_H 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 #define Py_MARSHAL_VERSION 4 11 12 PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int); 13 PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int); 14 PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int); 15 16 #ifndef Py_LIMITED_API 17 PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *); 18 PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *); 19 PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *); 20 PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *); 21 #endif 22 PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(const char *, 23 Py_ssize_t); 24 25 #ifdef __cplusplus 26 } 27 #endif 28 #endif /* !Py_MARSHAL_H */ 29