Staging
v0.5.1
https://github.com/python/cpython
Revision 3d678e3b12b376dbb1f65fdff11b0c14bcc93bc6 authored by Benjamin Peterson on 04 May 2014, 00:18:50 UTC, committed by Benjamin Peterson on 04 May 2014, 00:18:50 UTC
1 parent f24600e
Raw File
Tip revision: 3d678e3b12b376dbb1f65fdff11b0c14bcc93bc6 authored by Benjamin Peterson on 04 May 2014, 00:18:50 UTC
use with blocks to make sure files are closed
Tip revision: 3d678e3
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