mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 03:21:24 +03:00
Fix build failure when not USE_READLINE. Sergey E. Koposov
This commit is contained in:
parent
589b67d34b
commit
562f63b0a7
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
|
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.48 2006/02/12 05:24:38 momjian Exp $
|
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.49 2006/02/13 14:57:15 tgl Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
@ -213,7 +213,8 @@ gets_fromFile(FILE *source)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void encode_history()
|
#ifdef USE_READLINE
|
||||||
|
static void encode_history(void)
|
||||||
{
|
{
|
||||||
HIST_ENTRY *cur_hist;
|
HIST_ENTRY *cur_hist;
|
||||||
char *cur_ptr;
|
char *cur_ptr;
|
||||||
@ -225,7 +226,7 @@ static void encode_history()
|
|||||||
*cur_ptr = NL_IN_HISTORY;
|
*cur_ptr = NL_IN_HISTORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void decode_history()
|
static void decode_history(void)
|
||||||
{
|
{
|
||||||
HIST_ENTRY *cur_hist;
|
HIST_ENTRY *cur_hist;
|
||||||
char *cur_ptr;
|
char *cur_ptr;
|
||||||
@ -236,6 +237,7 @@ static void decode_history()
|
|||||||
if (*cur_ptr == NL_IN_HISTORY)
|
if (*cur_ptr == NL_IN_HISTORY)
|
||||||
*cur_ptr = '\n';
|
*cur_ptr = '\n';
|
||||||
}
|
}
|
||||||
|
#endif /* USE_READLINE */
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -290,7 +292,6 @@ initializeInput(int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
saveHistory(char *fname)
|
saveHistory(char *fname)
|
||||||
{
|
{
|
||||||
@ -311,7 +312,6 @@ saveHistory(char *fname)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
#ifdef HAVE_ATEXIT
|
#ifdef HAVE_ATEXIT
|
||||||
finishInput(void)
|
finishInput(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user