cpython: 4c4f31a1b706 (original) (raw)

Mercurial > cpython

changeset 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. [#18603]

Christian Heimes christian@cheimes.de
date Tue, 22 Oct 2013 10:22:29 +0200
parents d8e352e2f110
children b5cc822d5bf0 95b88273683c
files Misc/NEWS Python/pythonrun.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-)[+] [-] Misc/NEWS 3 Python/pythonrun.c 4

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,9 @@ What's New in Python 3.3.3 release candi Core and Builtins ----------------- +- Issue #18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the

--- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -96,6 +96,10 @@ int Py_HashRandomizationFlag = 0; /* for PyThreadState _Py_Finalizing = NULL; +/ Hack to force loading of object files / +int (_PyOS_mystrnicmp_hack)(const char *, const char *, Py_ssize_t) = [](#l2.8)

+ /* PyModule_GetWarningsModule is no longer necessary as of 2.6 since _warnings is builtin. This API should not be used. */ PyObject *