diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-06-27 16:51:46 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-06-27 16:51:46 (GMT) |
commit | ef82d2fdfe1aba18e29abbd59b22d19d490e9fca (patch) | |
tree | f39fe4de79b90f97ad2d25ef493cde78ee89f745 /Include/marshal.h | |
parent | 8d97e33bb76c322cdb08dbf97c26d787cd3488a7 (diff) | |
download | cpython-ef82d2fdfe1aba18e29abbd59b22d19d490e9fca.zip cpython-ef82d2fdfe1aba18e29abbd59b22d19d490e9fca.tar.gz cpython-ef82d2fdfe1aba18e29abbd59b22d19d490e9fca.tar.bz2 |
Patch #923098: Share interned strings in marshal.
Diffstat (limited to 'Include/marshal.h')
-rw-r--r-- | Include/marshal.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Include/marshal.h b/Include/marshal.h index f123093..fc491dd 100644 --- a/Include/marshal.h +++ b/Include/marshal.h @@ -7,9 +7,11 @@ extern "C" { #endif -PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *); -PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *); -PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *); +#define Py_MARSHAL_VERSION 1 + +PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int); +PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int); +PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int); PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *); PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *); |