mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Various changes
This commit is contained in:
parent
4d770bedc1
commit
2e8481c03b
56 changed files with 527 additions and 337 deletions
|
@ -40,6 +40,7 @@
|
|||
#include "common-defs.h"
|
||||
|
||||
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
static void
|
||||
set_completer (rl_completion_func_t *completer)
|
||||
{
|
||||
|
@ -68,12 +69,15 @@ init_stream (FILE *fp)
|
|||
rl_inhibit_completion = 1;
|
||||
}
|
||||
|
||||
#endif /*HAVE_LIBREADLINE*/
|
||||
|
||||
|
||||
/* Initialize our readline code. This should be called as early as
|
||||
possible as it is actually a constructur. */
|
||||
void
|
||||
gnupg_rl_initialize (void)
|
||||
{
|
||||
#ifdef HAVE_LIBREADLINE
|
||||
tty_private_set_rl_hooks (init_stream,
|
||||
set_completer,
|
||||
inhibit_completion,
|
||||
|
@ -81,7 +85,7 @@ gnupg_rl_initialize (void)
|
|||
readline,
|
||||
add_history);
|
||||
rl_readline_name = "GnuPG";
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue