1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Work with Readline 4.2.

This commit is contained in:
Peter Eisentraut
2001-04-14 22:55:02 +00:00
parent 25efda227d
commit eb1b164317
4 changed files with 133 additions and 128 deletions

View File

@ -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@$><=;|&{( ";

View File

@ -8,7 +8,7 @@
* or in config.h afterwards. Of course, if you edit config.h, then your
* changes will be overwritten the next time you run configure.
*
* $Id: config.h.in,v 1.161 2001/03/23 18:42:12 tgl Exp $
* $Id: config.h.in,v 1.162 2001/04/14 22:55:02 petere Exp $
*/
#ifndef CONFIG_H
@ -573,8 +573,8 @@ extern int fdatasync(int fildes);
/* Set to 1 if your libreadline defines rl_completion_append_character */
#undef HAVE_RL_COMPLETION_APPEND_CHARACTER
/* Set to 1 if filename_completion_function is declared in the readline header */
#undef HAVE_FILENAME_COMPLETION_FUNCTION_DECL
/* Set to 1 if you have rl_completion_matches */
#undef HAVE_RL_COMPLETION_MATCHES
/* Set to 1 if you have getopt_long() (GNU long options) */
#undef HAVE_GETOPT_LONG