diff options
author | Donghee Na <donghee.na@python.org> | 2023-09-29 12:18:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 12:18:18 (GMT) |
commit | 501939c9c1433c5b95ca19ae752e5881149f61b9 (patch) | |
tree | c2243227417c43ac74ec13c30b676cff550d0274 /Modules | |
parent | db0a258e796703e12befea9d6dec04e349ca2f5b (diff) | |
download | cpython-501939c9c1433c5b95ca19ae752e5881149f61b9.zip cpython-501939c9c1433c5b95ca19ae752e5881149f61b9.tar.gz cpython-501939c9c1433c5b95ca19ae752e5881149f61b9.tar.bz2 |
gh-105323: Update readline module to detect apple editline variant (gh-108665)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/readline.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/readline.c b/Modules/readline.c index aeae654..4b47302 100644 --- a/Modules/readline.c +++ b/Modules/readline.c @@ -1018,6 +1018,8 @@ on_hook(PyObject *func) static int #if defined(_RL_FUNCTION_TYPEDEF) on_startup_hook(void) +#elif defined(WITH_APPLE_EDITLINE) +on_startup_hook(const char *Py_UNUSED(text), int Py_UNUSED(state)) #else on_startup_hook(void) #endif @@ -1033,6 +1035,8 @@ on_startup_hook(void) static int #if defined(_RL_FUNCTION_TYPEDEF) on_pre_input_hook(void) +#elif defined(WITH_APPLE_EDITLINE) +on_pre_input_hook(const char *Py_UNUSED(text), int Py_UNUSED(state)) #else on_pre_input_hook(void) #endif |