blob: d9498a7ce802c315eada850b302436ef06cd7274 [file] [log] [blame]
Guido van Rossuma3309961993-07-28 09:05:47 +00001#ifndef Py_MARSHAL_H
2#define Py_MARSHAL_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Guido van Rossumdce2e3d1991-06-04 19:42:30 +00007/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00008Copyright (c) 2000, BeOpen.com.
9Copyright (c) 1995-2000, Corporation for National Research Initiatives.
10Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
11All rights reserved.
Guido van Rossumdce2e3d1991-06-04 19:42:30 +000012
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000013See the file "Misc/COPYRIGHT" for information on usage and
14redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossumdce2e3d1991-06-04 19:42:30 +000015******************************************************************/
16
17/* Interface for marshal.c */
18
Guido van Rossum43466ec1998-12-04 18:48:25 +000019DL_IMPORT(void) PyMarshal_WriteLongToFile Py_PROTO((long, FILE *));
20DL_IMPORT(void) PyMarshal_WriteShortToFile Py_PROTO((int, FILE *));
21DL_IMPORT(void) PyMarshal_WriteObjectToFile Py_PROTO((PyObject *, FILE *));
22DL_IMPORT(PyObject *) PyMarshal_WriteObjectToString Py_PROTO((PyObject *));
Guido van Rossumdce2e3d1991-06-04 19:42:30 +000023
Guido van Rossum43466ec1998-12-04 18:48:25 +000024DL_IMPORT(long) PyMarshal_ReadLongFromFile Py_PROTO((FILE *));
25DL_IMPORT(int) PyMarshal_ReadShortFromFile Py_PROTO((FILE *));
26DL_IMPORT(PyObject *) PyMarshal_ReadObjectFromFile Py_PROTO((FILE *));
27DL_IMPORT(PyObject *) PyMarshal_ReadObjectFromString Py_PROTO((char *, int));
Guido van Rossuma3309961993-07-28 09:05:47 +000028
29#ifdef __cplusplus
30}
31#endif
32#endif /* !Py_MARSHAL_H */