Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 86562:b5cc822d5bf0
Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the
Python executable and not removed by the linker's optimizer.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Tue, 22 Oct 2013 10:23:12 +0200 |
| parents | 12d7b6171b28 4c4f31a1b706 |
| children | 55517661a053 |
comparison
equal
deleted
inserted
replaced
| 86560:c2e018c54689 | 86562:b5cc822d5bf0 |
|---|---|
| 113 int Py_UnbufferedStdioFlag = 0; /* Unbuffered binary std{in,out,err} */ | 113 int Py_UnbufferedStdioFlag = 0; /* Unbuffered binary std{in,out,err} */ |
| 114 int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */ | 114 int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */ |
| 115 int Py_IsolatedFlag = 0; /* for -I, isolate from user's env */ | 115 int Py_IsolatedFlag = 0; /* for -I, isolate from user's env */ |
| 116 | 116 |
| 117 PyThreadState *_Py_Finalizing = NULL; | 117 PyThreadState *_Py_Finalizing = NULL; |
| 118 | |
| 119 /* Hack to force loading of object files */ | |
| 120 int (*_PyOS_mystrnicmp_hack)(const char *, const char *, Py_ssize_t) = \ | |
| 121 PyOS_mystrnicmp; /* Python/pystrcmp.o */ | |
| 118 | 122 |
| 119 /* PyModule_GetWarningsModule is no longer necessary as of 2.6 | 123 /* PyModule_GetWarningsModule is no longer necessary as of 2.6 |
| 120 since _warnings is builtin. This API should not be used. */ | 124 since _warnings is builtin. This API should not be used. */ |
| 121 PyObject * | 125 PyObject * |
| 122 PyModule_GetWarningsModule(void) | 126 PyModule_GetWarningsModule(void) |
