comparison Python/pythonrun.c @ 86561:4c4f31a1b706 3.3

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:22:29 +0200
parents 19ce90930e8b
children 159e51e5fc2c b5cc822d5bf0
comparison
equal deleted inserted replaced
86534:d8e352e2f110 86561:4c4f31a1b706
93 int Py_NoUserSiteDirectory = 0; /* for -s and site.py */ 93 int Py_NoUserSiteDirectory = 0; /* for -s and site.py */
94 int Py_UnbufferedStdioFlag = 0; /* Unbuffered binary std{in,out,err} */ 94 int Py_UnbufferedStdioFlag = 0; /* Unbuffered binary std{in,out,err} */
95 int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */ 95 int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */
96 96
97 PyThreadState *_Py_Finalizing = NULL; 97 PyThreadState *_Py_Finalizing = NULL;
98
99 /* Hack to force loading of object files */
100 int (*_PyOS_mystrnicmp_hack)(const char *, const char *, Py_ssize_t) = \
101 PyOS_mystrnicmp; /* Python/pystrcmp.o */
98 102
99 /* PyModule_GetWarningsModule is no longer necessary as of 2.6 103 /* PyModule_GetWarningsModule is no longer necessary as of 2.6
100 since _warnings is builtin. This API should not be used. */ 104 since _warnings is builtin. This API should not be used. */
101 PyObject * 105 PyObject *
102 PyModule_GetWarningsModule(void) 106 PyModule_GetWarningsModule(void)