Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-90005: Port readline and curses to PY_STDLIB_MOD (GH-94452)#94452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tiran merged 7 commits intopython:mainfromtiran:gh-90005-readline-curses
Jul 6, 2022
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Consolidate readline_includes
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
  • Loading branch information
@tiran@erlend-aasland
tiran anderlend-aasland authoredJul 1, 2022
commit550d323e3830ba522f9cb06b98dae2656054f826
31 changes: 9 additions & 22 deletionsconfigure.ac
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5860,29 +5860,22 @@ AS_VAR_IF([with_readline], [no], [
CPPFLAGS="$READLINE_CFLAGS $CFLAGS"
LIBS="$READLINE_LIBS $LIBS"
LIBS_SAVE=$LIBS

# check for readline 2.2
AC_CHECK_DECL([rl_completion_append_character], [
AC_DEFINE([HAVE_RL_COMPLETION_APPEND_CHARACTER], [1], [Define if you have readline 2.2])
], [], [
m4_define([readline_includes], [
#include <stdio.h> /* Must be first for Gnu Readline */
#ifdef WITH_EDITLINE
# include <editline/readline.h>
#else
# include <readline/readline.h>
#endif
])
]
# check for readline 2.2
AC_CHECK_DECL([rl_completion_append_character], [
AC_DEFINE([HAVE_RL_COMPLETION_APPEND_CHARACTER], [1], [Define if you have readline 2.2])
], [], [readline_includes])

AC_CHECK_DECL([rl_completion_suppress_append], [
AC_DEFINE([HAVE_RL_COMPLETION_SUPPRESS_APPEND], [1], [Define if you have rl_completion_suppress_append])
], [], [
#include <stdio.h> /* Must be first for Gnu Readline */
#ifdef WITH_EDITLINE
# include <editline/readline.h>
#else
# include <readline/readline.h>
#endif
])
], [], [readline_includes])

# check for readline 4.0
AC_CHECK_LIB([$LIBREADLINE], [rl_pre_input_hook], [
Expand DownExpand Up@@ -5911,20 +5904,14 @@ AS_VAR_IF([with_readline], [no], [
# also in readline 4.2
AC_CHECK_DECL([rl_catch_signals], [
AC_DEFINE([HAVE_RL_CATCH_SIGNAL], [1], [Define if you can turn off readline's signal handling.])
], [], [
#include <stdio.h> /* Must be first for Gnu Readline */
#ifdef WITH_EDITLINE
# include <editline/readline.h>
#else
# include <readline/readline.h>
#endif
])
], [], [readline_includes])

AC_CHECK_LIB([$LIBREADLINE], [append_history], [
AC_DEFINE([HAVE_RL_APPEND_HISTORY], [1], [Define if readline supports append_history])
])
LIBS=$LIBS_SAVE

m4_undefine([readline_includes])
])dnl WITH_SAVE_ENV()
])

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp