]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117845: Detect libedit hook function signature in configure (#117870)
authorJoshua Root <jmr@macports.org>
Wed, 17 Apr 2024 09:26:10 +0000 (19:26 +1000)
committerGitHub <noreply@github.com>
Wed, 17 Apr 2024 09:26:10 +0000 (11:26 +0200)
commit8515fd79fef1ac16d7848cec5ec1797294cb5366
tree28cc3745dea1506bd2bb463bf21777ef46c67640
parentf74e51229c83e3265f905dc15283bfe0ec1a659e
gh-117845: Detect libedit hook function signature in configure (#117870)

Older libedit versions (like Apple's) use a different type signature
for rl_startup_hook and rl_pre_input_hook. Add a configure check to
determine which signature is accepted by introducing the
Py_RL_STARTUP_HOOK_TAKES_ARGS macro in pyconfig.h.
Misc/NEWS.d/next/Build/2024-04-15-08-35-06.gh-issue-117845.IowzyW.rst [new file with mode: 0644]
Modules/readline.c
configure
configure.ac
pyconfig.h.in