Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
06820218
Commit
06820218
authored
Apr 27, 2006
by
Niels Möller
Browse files
Disable readline support if the needed functions aren't available.
Rev: src/sftp/rl.c:1.10
parent
6dec2c80
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sftp/rl.c
View file @
06820218
...
...
@@ -37,42 +37,55 @@ int sloppy_complete = 2;
#include "rl.h"
#ifdef WITH_READLINE
#include "str_utils.h"
static
int
lsftp_rl_line_inited
=
0
;
#ifdef HAVE_RL_FILENAME_COMPLETION_FUNCTION
# define RL_FILENAME_COMPLETION_FUNCTION rl_filename_completion_function
#else
/* HAVE_RL_FILENAME_COMPLETION_FUNCTION */
# ifdef HAVE_FILENAME_COMPLETION_FUNCTION
# define RL_FILENAME_COMPLETION_FUNCTION filename_completion_function
# else
# error "lsftp doesn't work with your readline library, please disable readline and contact the author."
# if __GNUC__
# warning "lsftp doesn't work with your readline library, please disable readline and contact the author."
# endif
# undef WITH_READLINE
# endif
/* HAVE_FILENAME_COMPLETION_FUNCTION */
#endif
/* HAVE_RL_FILENAME_COMPLETION_FUNCTION */
#endif
#ifdef WITH_READLINE
#ifdef HAVE_RL_COMPLETION_MATCHES
# define RL_COMPLETION_MATCHES rl_completion_matches
#else
/* HAVE_RL_COMPLETION_MATCHES */
# ifdef HAVE_COMPLETION_MATCHES
# define RL_COMPLETION_MATCHES completion_matches
# else
# error "lsftp doesn't work with your readline library, please disable readline and contact the author."
# if __GNUC__
# warning "lsftp doesn't work with your readline library, please disable readline and contact the author."
# endif
# undef WITH_READLINE
# endif
/* HAVE_COMPLETION_MATCHES */
#endif
/* HAVE_RL_COMPLETION_MATCHES */
#endif
#ifdef WITH_READLINE
#ifdef HAVE_RL_CHAR_IS_QUOTED_P
# define RL_CHAR_IS_QUOTED rl_char_is_quoted_p
#else
/* HAVE_RL_CHAR_IS_QUOTED */
# ifdef HAVE_CHAR_IS_QUOTED
# define RL_CHAR_IS_QUOTED char_is_quoted
# else
# error "lsftp doesn't work with your readline library, please disable readline and contact the author."
# if __GNUC__
# warning "lsftp doesn't work with your readline library, please disable readline and contact the author."
# endif
# undef WITH_READLINE
# endif
/* HAVE_CHAR_IS_QUOTED */
#endif
/* HAVE_RL_CHAR_IS_QUOTED */
#endif
#ifdef WITH_READLINE
#include "str_utils.h"
static
int
lsftp_rl_line_inited
=
0
;
/* FIXME: review readline support, proper way to do it? */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment