Staging
v0.5.1
https://github.com/python/cpython
Revision d648ef10c5c7659ed3c9f34d5c751dc55e2c6007 authored by Charles Burkland on 13 March 2020, 16:04:43 UTC, committed by GitHub on 13 March 2020, 16:04:43 UTC
1 parent 38965ec
Raw File
Tip revision: d648ef10c5c7659ed3c9f34d5c751dc55e2c6007 authored by Charles Burkland on 13 March 2020, 16:04:43 UTC
bpo-36144: Update os.environ and os.environb for PEP 584 (#18911)
Tip revision: d648ef1
marshal.h

/* Interface for marshal.c */

#ifndef Py_MARSHAL_H
#define Py_MARSHAL_H
#ifdef __cplusplus
extern "C" {
#endif

#define Py_MARSHAL_VERSION 4

PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int);
PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);

#ifndef Py_LIMITED_API
PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
#endif
PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(const char *,
                                                      Py_ssize_t);

#ifdef __cplusplus
}
#endif
#endif /* !Py_MARSHAL_H */
back to top