summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-22 08:22:29 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-10-22 08:22:29 (GMT)
commit51c4d72d436769dab2edbbc7b4685912546e8d47 (patch)
tree737547262e84ce8b26b842e921c4b37bb5dca100 /Python/pythonrun.c
parentc62403818c4a216cc73167001057261741045038 (diff)
downloadcpython-51c4d72d436769dab2edbbc7b4685912546e8d47.zip
cpython-51c4d72d436769dab2edbbc7b4685912546e8d47.tar.gz
cpython-51c4d72d436769dab2edbbc7b4685912546e8d47.tar.bz2
Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the
Python executable and not removed by the linker's optimizer.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index a2e1e74..2a40c0b 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -91,6 +91,11 @@ int _Py_QnewFlag = 0;
int Py_NoUserSiteDirectory = 0; /* for -s and site.py */
int Py_HashRandomizationFlag = 0; /* for -R and PYTHONHASHSEED */
+
+/* Hack to force loading of object files */
+int (*_PyOS_mystrnicmp_hack)(const char *, const char *, Py_ssize_t) = \
+ PyOS_mystrnicmp; /* Python/pystrcmp.o */
+
/* PyModule_GetWarningsModule is no longer necessary as of 2.6
since _warnings is builtin. This API should not be used. */
PyObject *