summaryrefslogtreecommitdiff
path: root/src/bin/psql/rlstubs.c
diff options
context:
space:
mode:
authorMarc G. Fournier1996-07-09 06:22:35 +0000
committerMarc G. Fournier1996-07-09 06:22:35 +0000
commit24a952fe4a27c6c66dc46ee3b2d860755fe063e1 (patch)
tree9c669cd24c4dbcf57f03c278f3169dcb971a2151 /src/bin/psql/rlstubs.c
Postgres95 1.01 Distribution - Virgin SourcesPG95_DIST
Diffstat (limited to 'src/bin/psql/rlstubs.c')
-rw-r--r--src/bin/psql/rlstubs.c41
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 0000000000..e5dc0abc40
--- /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$
+ *
+ *-------------------------------------------------------------------------
+ */
+#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;
+}