Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 67347:3bf4d9f1660a
Issue #9566: use Py_ssize_t instead of int
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Tue, 04 Jan 2011 12:59:15 +0000 |
| parents | b7be652daf6e |
| children | aba16a5683d3 |
comparison
equal
deleted
inserted
replaced
| 67346:98c8aa237fc1 | 67347:3bf4d9f1660a |
|---|---|
| 1200 PyRun_SimpleFileExFlags(FILE *fp, const char *filename, int closeit, | 1200 PyRun_SimpleFileExFlags(FILE *fp, const char *filename, int closeit, |
| 1201 PyCompilerFlags *flags) | 1201 PyCompilerFlags *flags) |
| 1202 { | 1202 { |
| 1203 PyObject *m, *d, *v; | 1203 PyObject *m, *d, *v; |
| 1204 const char *ext; | 1204 const char *ext; |
| 1205 int set_file_name = 0, ret, len; | 1205 int set_file_name = 0, ret; |
| 1206 size_t len; | |
| 1206 | 1207 |
| 1207 m = PyImport_AddModule("__main__"); | 1208 m = PyImport_AddModule("__main__"); |
| 1208 if (m == NULL) | 1209 if (m == NULL) |
| 1209 return -1; | 1210 return -1; |
| 1210 d = PyModule_GetDict(m); | 1211 d = PyModule_GetDict(m); |
