summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2021-04-23 12:23:38 (GMT)
committerGitHub <noreply@github.com>2021-04-23 12:23:38 (GMT)
commit91b69b77cf5f78de6d35dea23098df34b6fd9e53 (patch)
treecfa9ffbc8a6fc3afd478e89e25be073570b78387 /Include
parentdcf658157df11de198a98e3db2a3050dd4f6b973 (diff)
downloadcpython-91b69b77cf5f78de6d35dea23098df34b6fd9e53.zip
cpython-91b69b77cf5f78de6d35dea23098df34b6fd9e53.tar.gz
cpython-91b69b77cf5f78de6d35dea23098df34b6fd9e53.tar.bz2
bpo-43868: Remove PyOS_ReadlineFunctionPointer from the stable ABI list (GH-25442)
The inclusion of PyOS_ReadlineFunctionPointer in python3dll.c was a mistake. According to PEP 384: > functions expecting FILE* are not part of the ABI, to avoid depending > on a specific version of the Microsoft C runtime DLL on Windows. https://bugs.python.org/issue43868
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/pythonrun.h1
-rw-r--r--Include/pythonrun.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/pythonrun.h b/Include/cpython/pythonrun.h
index ffca0e45..2e72d08 100644
--- a/Include/cpython/pythonrun.h
+++ b/Include/cpython/pythonrun.h
@@ -118,3 +118,4 @@ PyAPI_FUNC(PyObject *) PyRun_FileFlags(FILE *fp, const char *p, int s, PyObject
/* Stuff with no proper home (yet) */
PyAPI_FUNC(char *) PyOS_Readline(FILE *, FILE *, const char *);
PyAPI_DATA(PyThreadState*) _PyOS_ReadlineTState;
+PyAPI_DATA(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, const char *);
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index b87bc73..b0a2fc3 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -16,7 +16,6 @@ PyAPI_FUNC(void) PyErr_Display(PyObject *, PyObject *, PyObject *);
/* Stuff with no proper home (yet) */
PyAPI_DATA(int) (*PyOS_InputHook)(void);
-PyAPI_DATA(char) *(*PyOS_ReadlineFunctionPointer)(FILE *, FILE *, const char *);
/* Stack size, in "pointers" (so we get extra safety margins
on 64-bit platforms). On a 32-bit platform, this translates