1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Various changes

This commit is contained in:
Werner Koch 2006-10-10 11:11:04 +00:00
parent 4d770bedc1
commit 2e8481c03b
56 changed files with 527 additions and 337 deletions

View file

@ -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
}