Mercurial > cpython-lru_cache-weakref
annotate Include/marshal.h @ 79675:c0a2294de787 2.7
Issue #16199: Backport 2to3 typo fix from 3.2.
| author | Chris Jerdonek <chris.jerdonek@gmail.com> |
|---|---|
| date | Thu, 11 Oct 2012 16:15:46 -0700 |
| parents | 7fdc639bc5b4 |
| children | 62b61abd02b8 |
| rev | line source |
|---|---|
| 267 | 1 |
| 2 /* Interface for marshal.c */ | |
| 3 | |
|
13443
7e58c060d534
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
4 #ifndef Py_MARSHAL_H |
|
7e58c060d534
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
5 #define Py_MARSHAL_H |
|
7e58c060d534
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
6 #ifdef __cplusplus |
|
7e58c060d534
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
7 extern "C" { |
|
7e58c060d534
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
8 #endif |
| 267 | 9 |
| 35008 | 10 #define Py_MARSHAL_VERSION 2 |
|
32422
3df36e2e5ddc
Patch #923098: Share interned strings in marshal.
Martin v. Löwis <martin@v.loewis.de>
parents:
28205
diff
changeset
|
11 |
|
3df36e2e5ddc
Patch #923098: Share interned strings in marshal.
Martin v. Löwis <martin@v.loewis.de>
parents:
28205
diff
changeset
|
12 PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int); |
|
3df36e2e5ddc
Patch #923098: Share interned strings in marshal.
Martin v. Löwis <martin@v.loewis.de>
parents:
28205
diff
changeset
|
13 PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int); |
|
3df36e2e5ddc
Patch #923098: Share interned strings in marshal.
Martin v. Löwis <martin@v.loewis.de>
parents:
28205
diff
changeset
|
14 PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int); |
|
13443
7e58c060d534
ANSI-fication and Py_PROTO extermination.
Fred Drake <fdrake@acm.org>
parents:
13256
diff
changeset
|
15 |
|
24752
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
16311
diff
changeset
|
16 PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
16311
diff
changeset
|
17 PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
16311
diff
changeset
|
18 PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *); |
|
c1eb668525e1
Excise DL_EXPORT from Include.
Mark Hammond <mhammond@skippinet.com.au>
parents:
16311
diff
changeset
|
19 PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *); |
|
36501
7fdc639bc5b4
Merge ssize_t branch.
Martin v. Löwis <martin@v.loewis.de>
parents:
35008
diff
changeset
|
20 PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(char *, Py_ssize_t); |
|
1329
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1270
diff
changeset
|
21 |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1270
diff
changeset
|
22 #ifdef __cplusplus |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1270
diff
changeset
|
23 } |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1270
diff
changeset
|
24 #endif |
|
519c25039c6a
* Added support for X11 modules.
Guido van Rossum <guido@python.org>
parents:
1270
diff
changeset
|
25 #endif /* !Py_MARSHAL_H */ |
