diff --git a/decompyle/marshal_20.c b/decompyle/marshal_20.c --- a/decompyle/marshal_20.c +++ b/decompyle/marshal_20.c @@ -8,7 +8,7 @@ #include "Python.h" #include "longintrepr.h" #include "compile.h" -#include "marshal.h" +#include "marshal_23.h" /* High water mark to determine when the marshalled object is dangerously deep * and risks coring the interpreter. When the object stack gets this deep, diff --git a/decompyle/marshal_22.c b/decompyle/marshal_22.c index 220dbd1..64c1245 100644 --- a/decompyle/marshal_22.c +++ b/decompyle/marshal_22.c @@ -8,7 +8,7 @@ #include "Python.h" #include "longintrepr.h" #include "compile.h" -#include "marshal.h" +#include "marshal_23.h" /* High water mark to determine when the marshalled object is dangerously deep * and risks coring the interpreter. When the object stack gets this deep, diff --git a/decompyle/marshal_23.c b/decompyle/marshal_23.c index d221a85..e950173 100644 --- a/decompyle/marshal_23.c +++ b/decompyle/marshal_23.c @@ -7,7 +7,7 @@ #include "Python.h" #include "longintrepr.h" #include "compile.h" -#include "marshal.h" +#include "marshal_23.h" /* High water mark to determine when the marshalled object is dangerously deep * and risks coring the interpreter. When the object stack gets this deep, diff --git a/decompyle/marshal_23.h b/decompyle/marshal_23.h new file mode 100644 index 0000000..f123093 --- /dev/null +++ b/decompyle/marshal_23.h @@ -0,0 +1,23 @@ + +/* Interface for marshal.c */ + +#ifndef Py_MARSHAL_H +#define Py_MARSHAL_H +#ifdef __cplusplus +extern "C" { +#endif + +PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *); +PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *); +PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *); + +PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *); +PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *); +PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *); +PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *); +PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, int); + +#ifdef __cplusplus +} +#endif +#endif /* !Py_MARSHAL_H */