diff options
Diffstat (limited to 'src/bin/psql/rlstubs.c')
-rw-r--r-- | src/bin/psql/rlstubs.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/bin/psql/rlstubs.c b/src/bin/psql/rlstubs.c new file mode 100644 index 00000000000..2640d3ce094 --- /dev/null +++ b/src/bin/psql/rlstubs.c @@ -0,0 +1,41 @@ +/*------------------------------------------------------------------------- + * + * 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.1.1.1 1996/07/09 06:22:15 scrappy Exp $ + * + *------------------------------------------------------------------------- + */ +#include <stdio.h> + +char * +readline(char *prompt) +{ + static char buf[500]; + + printf("%s"); + return fgets(buf, 500, stdin); +} + +int +write_history() +{ + return 0; +} + +int +using_history() +{ + return 0; +} + +int +add_history() +{ + return 0; +} |