blob: 788757cadb54c4421502a6f1cae8233767d46474 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*-------------------------------------------------------------------------
*
* rlstubs.c--
* 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.c,v 1.5 1996/11/11 14:55:47 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#include <stdio.h>
#include "rlstubs.h"
extern char *readline(const char *);
extern int write_history(const char *);
extern int using_history(void);
extern int add_history(const char *);
char *
readline(const char *prompt)
{
static char buf[500];
printf("%s", prompt);
return fgets(buf, 500, stdin);
}
int
write_history(const char *dum)
{
return 0;
}
int
using_history(void)
{
return 0;
}
int
add_history(const char *dum)
{
return 0;
}
|