diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2001-04-14 22:55:02 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2001-04-14 22:55:02 +0000 |
commit | eb1b1643177b27b9f932a256226a0125bc230d55 (patch) | |
tree | 15fa722e9f710e7bfb178fad0cfea3cee5c8b4f4 /src/bin/psql/tab-complete.c | |
parent | 25efda227d2a3f8036f125c91f93d77304586181 (diff) |
Work with Readline 4.2.
Diffstat (limited to 'src/bin/psql/tab-complete.c')
-rw-r--r-- | src/bin/psql/tab-complete.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index f372e0ea61a..d80465af592 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3,7 +3,7 @@ * * Copyright 2000 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.29 2001/03/30 04:50:47 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/tab-complete.c,v 1.30 2001/04/14 22:55:02 petere Exp $ */ /*---------------------------------------------------------------------- @@ -60,9 +60,10 @@ #include "common.h" #include "settings.h" -#ifndef HAVE_FILENAME_COMPLETION_FUNCTION_DECL -char *filename_completion_function(char *, int); +extern char *filename_completion_function(); +#ifdef HAVE_RL_COMPLETION_MATCHES +#define completion_matches(x, y) rl_completion_matches((x), ((rl_compentry_func_t *)(y))) #endif #define BUF_SIZE 2048 @@ -100,7 +101,7 @@ void initialize_readline(void) { rl_readline_name = pset.progname; - rl_attempted_completion_function = psql_completion; + rl_attempted_completion_function = (void *)psql_completion; rl_basic_word_break_characters = "\t\n@$><=;|&{( "; |