Guido van Rossum | dce2e3d | 1991-06-04 19:42:30 +0000 | [diff] [blame] | 1 | /*********************************************************** |
Guido van Rossum | fd71b9e | 2000-06-30 23:50:40 +0000 | [diff] [blame] | 2 | Copyright (c) 2000, BeOpen.com. |
| 3 | Copyright (c) 1995-2000, Corporation for National Research Initiatives. |
| 4 | Copyright (c) 1990-1995, Stichting Mathematisch Centrum. |
| 5 | All rights reserved. |
Guido van Rossum | dce2e3d | 1991-06-04 19:42:30 +0000 | [diff] [blame] | 6 | |
Guido van Rossum | fd71b9e | 2000-06-30 23:50:40 +0000 | [diff] [blame] | 7 | See the file "Misc/COPYRIGHT" for information on usage and |
| 8 | redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
Guido van Rossum | dce2e3d | 1991-06-04 19:42:30 +0000 | [diff] [blame] | 9 | ******************************************************************/ |
| 10 | |
| 11 | /* Interface for marshal.c */ |
| 12 | |
Fred Drake | 5eb6d4e | 2000-07-08 23:37:28 +0000 | [diff] [blame] | 13 | #ifndef Py_MARSHAL_H |
| 14 | #define Py_MARSHAL_H |
| 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
Guido van Rossum | dce2e3d | 1991-06-04 19:42:30 +0000 | [diff] [blame] | 18 | |
Fred Drake | 5eb6d4e | 2000-07-08 23:37:28 +0000 | [diff] [blame] | 19 | DL_IMPORT(void) PyMarshal_WriteLongToFile(long, FILE *); |
| 20 | DL_IMPORT(void) PyMarshal_WriteShortToFile(int, FILE *); |
| 21 | DL_IMPORT(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *); |
| 22 | DL_IMPORT(PyObject *) PyMarshal_WriteObjectToString(PyObject *); |
| 23 | |
| 24 | DL_IMPORT(long) PyMarshal_ReadLongFromFile(FILE *); |
| 25 | DL_IMPORT(int) PyMarshal_ReadShortFromFile(FILE *); |
| 26 | DL_IMPORT(PyObject *) PyMarshal_ReadObjectFromFile(FILE *); |
| 27 | DL_IMPORT(PyObject *) PyMarshal_ReadObjectFromString(char *, int); |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 28 | |
| 29 | #ifdef __cplusplus |
| 30 | } |
| 31 | #endif |
| 32 | #endif /* !Py_MARSHAL_H */ |