mirror of
https://github.com/python/cpython
synced 2024-10-14 18:49:33 +00:00
af1083e975
Remove two functions from the limited C API: * PyMarshal_WriteLongToFile() * PyMarshal_WriteObjectToFile() The PEP 384 excludes functions expecting "FILE*" from the stable ABI. Remove also the Py_MARSHAL_VERSION macro from the limited C API.
30 lines
804 B
C
30 lines
804 B
C
|
|
/* Interface for marshal.c */
|
|
|
|
#ifndef Py_MARSHAL_H
|
|
#define Py_MARSHAL_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(const char *,
|
|
Py_ssize_t);
|
|
PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);
|
|
|
|
#ifndef Py_LIMITED_API
|
|
#define Py_MARSHAL_VERSION 4
|
|
|
|
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(void) PyMarshal_WriteLongToFile(long, FILE *, int);
|
|
PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* !Py_MARSHAL_H */
|