cosmopolitan/third_party/python/Include/marshal.h
Justine Tunney fa20edc44d
Reduce header complexity
- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
2023-11-28 14:39:42 -08:00

21 lines
643 B
C

#ifndef Py_MARSHAL_H
#define Py_MARSHAL_H
#include "third_party/python/Include/object.h"
COSMOPOLITAN_C_START_
#define Py_MARSHAL_VERSION 4
void PyMarshal_WriteLongToFile(long, FILE *, int);
void PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
PyObject * PyMarshal_WriteObjectToString(PyObject *, int);
#ifndef Py_LIMITED_API
long PyMarshal_ReadLongFromFile(FILE *);
int PyMarshal_ReadShortFromFile(FILE *);
PyObject * PyMarshal_ReadObjectFromFile(FILE *);
PyObject * PyMarshal_ReadLastObjectFromFile(FILE *);
#endif
PyObject * PyMarshal_ReadObjectFromString(const char *, Py_ssize_t);
COSMOPOLITAN_C_END_
#endif /* !Py_MARSHAL_H */