Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Aug 30, 2023
1 parent 33b01c5 commit 0220538
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Modules/readline.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ static int
#if defined(_RL_FUNCTION_TYPEDEF)
on_startup_hook(void)
{
#elif defined(__APPLE__) && defined(WITH_APPLE_READLINE)
#elif defined(__APPLE__) && defined(WITH_APPLE_EDITLINE)
on_startup_hook(const char *text, int state)
{
(void)text;
Expand All @@ -1041,7 +1041,7 @@ static int
#if defined(_RL_FUNCTION_TYPEDEF)
on_pre_input_hook(void)
{
#elif defined(__APPLE__) && defined(WITH_APPLE_READLINE)
#elif defined(__APPLE__) && defined(WITH_APPLE_EDITLINE)
on_pre_input_hook(const char *text, int state)
{
(void)text;
Expand Down
2 changes: 1 addition & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -5813,7 +5813,7 @@ dnl library (tinfo ncursesw ncurses termcap). We now assume that libreadline
dnl or readline.pc provide correct linker information.

AH_TEMPLATE([WITH_EDITLINE], [Define to build the readline module against libedit.])
AH_TEMPLATE([WITH_APPLE_READLINE], [Define to build the readline module agains apple builtin readline.])
AH_TEMPLATE([WITH_APPLE_EDITLINE], [Define to build the readline module against Apple BSD editline.])

AC_ARG_WITH(
[readline],
Expand All @@ -5834,7 +5834,7 @@ AC_ARG_WITH(
dnl gh-105323: Need to handle the macOS editline as an alias of readline.
AS_VAR_IF([with_readline], [apple], [
AS_CASE([$ac_sys_system/$ac_sys_release],
[Darwin/*], [AC_DEFINE([WITH_APPLE_READLINE]) with_readline=readline],
[Darwin/*], [AC_DEFINE([WITH_APPLE_EDITLINE]) with_readline=readline],
[AC_MSG_ERROR([Only supports for macOS])])]
)

Expand Down
4 changes: 2 additions & 2 deletions pyconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -1791,8 +1791,8 @@
/* Define if WINDOW in curses.h offers a field _flags. */
#undef WINDOW_HAS_FLAGS

/* Define to build the readline module agains apple builtin readline. */
#undef WITH_APPLE_READLINE
/* Define to build the readline module against Apple BSD editline. */
#undef WITH_APPLE_EDITLINE

/* Define if you want build the _decimal module using a coroutine-local rather
than a thread-local context */
Expand Down

0 comments on commit 0220538

Please sign in to comment.