mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove warnings when readline is not used.
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.27 1996/11/10 03:04:12 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.28 1996/11/11 05:55:30 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -26,7 +26,7 @@
|
|||||||
#include "psqlHelp.h"
|
#include "psqlHelp.h"
|
||||||
|
|
||||||
#ifdef NOREADLINE
|
#ifdef NOREADLINE
|
||||||
extern char *readline(char *); /* in rlstubs.c */
|
#include "rlstubs.h"
|
||||||
#else
|
#else
|
||||||
/* from the GNU readline library */
|
/* from the GNU readline library */
|
||||||
#ifdef OLD_READLINE
|
#ifdef OLD_READLINE
|
||||||
|
@ -7,12 +7,14 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.2 1996/07/30 07:47:58 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.c,v 1.3 1996/11/11 05:55:32 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "rlstubs.h"
|
||||||
|
|
||||||
char *
|
char *
|
||||||
readline(char *prompt)
|
readline(char *prompt)
|
||||||
{
|
{
|
||||||
@ -23,19 +25,19 @@ readline(char *prompt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
write_history()
|
write_history(char *dum)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
using_history()
|
using_history(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
add_history()
|
add_history(char *dum)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
20
src/bin/psql/rlstubs.h
Normal file
20
src/bin/psql/rlstubs.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/*-------------------------------------------------------------------------
|
||||||
|
*
|
||||||
|
* rlstubs.h
|
||||||
|
* stub routines when compiled without readline and history libraries
|
||||||
|
*
|
||||||
|
* Copyright (c) 1994-5, Regents of the University of California
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* IDENTIFICATION
|
||||||
|
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/rlstubs.h,v 1.1 1996/11/11 05:55:33 momjian Exp $
|
||||||
|
*
|
||||||
|
*-------------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
extern char *readline(char *prompt);
|
||||||
|
|
||||||
|
extern int write_history(char *dum);
|
||||||
|
|
||||||
|
extern int using_history(void);
|
||||||
|
|
||||||
|
extern int add_history(char *dum);
|
Reference in New Issue
Block a user