blob: f12309371b0b2589575c408241be2fa3a7d349d8 [file] [log] [blame]
Guido van Rossumdce2e3d1991-06-04 19:42:30 +00001
2/* Interface for marshal.c */
3
Fred Drake5eb6d4e2000-07-08 23:37:28 +00004#ifndef Py_MARSHAL_H
5#define Py_MARSHAL_H
6#ifdef __cplusplus
7extern "C" {
8#endif
Guido van Rossumdce2e3d1991-06-04 19:42:30 +00009
Mark Hammond91a681d2002-08-12 07:21:58 +000010PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *);
Mark Hammond91a681d2002-08-12 07:21:58 +000011PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *);
12PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *);
Fred Drake5eb6d4e2000-07-08 23:37:28 +000013
Mark Hammond91a681d2002-08-12 07:21:58 +000014PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
15PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
16PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
17PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
18PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, int);
Guido van Rossuma3309961993-07-28 09:05:47 +000019
20#ifdef __cplusplus
21}
22#endif
23#endif /* !Py_MARSHAL_H */