Guido van Rossum | dce2e3d | 1991-06-04 19:42:30 +0000 | [diff] [blame] | 1 | |
| 2 | /* Interface for marshal.c */ |
| 3 | |
Fred Drake | 5eb6d4e | 2000-07-08 23:37:28 +0000 | [diff] [blame] | 4 | #ifndef Py_MARSHAL_H |
| 5 | #define Py_MARSHAL_H |
| 6 | #ifdef __cplusplus |
| 7 | extern "C" { |
| 8 | #endif |
Guido van Rossum | dce2e3d | 1991-06-04 19:42:30 +0000 | [diff] [blame] | 9 | |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 10 | PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *); |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 11 | PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *); |
| 12 | PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *); |
Fred Drake | 5eb6d4e | 2000-07-08 23:37:28 +0000 | [diff] [blame] | 13 | |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 14 | PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *); |
| 15 | PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *); |
| 16 | PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *); |
| 17 | PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *); |
| 18 | PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, int); |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 19 | |
| 20 | #ifdef __cplusplus |
| 21 | } |
| 22 | #endif |
| 23 | #endif /* !Py_MARSHAL_H */ |