LEFT | RIGHT |
1 | 1 |
2 /* Write Python objects to files and read them back. | 2 /* Write Python objects to files and read them back. |
3 This is intended for writing and reading compiled Python code only; | 3 This is intended for writing and reading compiled Python code only; |
4 a true persistent storage facility would be much harder, since | 4 a true persistent storage facility would be much harder, since |
5 it would have to take circular links and sharing into account. */ | 5 it would have to take circular links and sharing into account. */ |
6 | 6 |
7 #define PY_SSIZE_T_CLEAN | 7 #define PY_SSIZE_T_CLEAN |
8 | 8 |
9 #include "Python.h" | 9 #include "Python.h" |
10 #include "longintrepr.h" | 10 #include "longintrepr.h" |
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 | 1287 |
1288 PyMODINIT_FUNC | 1288 PyMODINIT_FUNC |
1289 PyMarshal_Init(void) | 1289 PyMarshal_Init(void) |
1290 { | 1290 { |
1291 PyObject *mod = PyModule_Create(&marshalmodule); | 1291 PyObject *mod = PyModule_Create(&marshalmodule); |
1292 if (mod == NULL) | 1292 if (mod == NULL) |
1293 return NULL; | 1293 return NULL; |
1294 PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION); | 1294 PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION); |
1295 return mod; | 1295 return mod; |
1296 } | 1296 } |
LEFT | RIGHT |