2021-08-08 04:08:33 +00:00
|
|
|
#ifndef Py_MARSHAL_H
|
|
|
|
#define Py_MARSHAL_H
|
2021-08-12 07:42:14 +00:00
|
|
|
#include "third_party/python/Include/object.h"
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
2021-08-08 04:08:33 +00:00
|
|
|
|
|
|
|
#define Py_MARSHAL_VERSION 4
|
|
|
|
|
2021-08-12 07:42:14 +00:00
|
|
|
void PyMarshal_WriteLongToFile(long, FILE *, int);
|
|
|
|
void PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
|
|
|
|
PyObject * PyMarshal_WriteObjectToString(PyObject *, int);
|
2021-08-08 04:08:33 +00:00
|
|
|
|
|
|
|
#ifndef Py_LIMITED_API
|
2021-08-12 07:42:14 +00:00
|
|
|
long PyMarshal_ReadLongFromFile(FILE *);
|
|
|
|
int PyMarshal_ReadShortFromFile(FILE *);
|
|
|
|
PyObject * PyMarshal_ReadObjectFromFile(FILE *);
|
|
|
|
PyObject * PyMarshal_ReadLastObjectFromFile(FILE *);
|
2021-08-08 04:08:33 +00:00
|
|
|
#endif
|
2021-08-12 07:42:14 +00:00
|
|
|
PyObject * PyMarshal_ReadObjectFromString(const char *, Py_ssize_t);
|
2021-08-08 04:08:33 +00:00
|
|
|
|
2021-08-10 17:26:13 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
2021-08-08 04:08:33 +00:00
|
|
|
#endif /* !Py_MARSHAL_H */
|