Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Sep 28, 2023
1 parent 33ad827 commit 2201f75
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Modules/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,16 +1018,12 @@ on_hook(PyObject *func)
static int
#if defined(_RL_FUNCTION_TYPEDEF)
on_startup_hook(void)
{
#elif defined(__APPLE__) && defined(WITH_APPLE_EDITLINE)
on_startup_hook(const char *text, int state)
{
(void)text;
(void)state;
#elif defined(WITH_APPLE_EDITLINE)
on_startup_hook(const char *Py_UNUSED(text), int Py_UNUSED(state)
#else
on_startup_hook(void)
{
#endif
{
int r;
PyGILState_STATE gilstate = PyGILState_Ensure();
r = on_hook(readlinestate_global->startup_hook);
Expand Down

0 comments on commit 2201f75

Please sign in to comment.