[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] Changes to pspp/src/getline.c
From: |
John Darrington |
Subject: |
[Pspp-cvs] Changes to pspp/src/getline.c |
Date: |
Sat, 05 Feb 2005 07:43:03 -0500 |
Index: pspp/src/getline.c
diff -u pspp/src/getline.c:1.10 pspp/src/getline.c:1.11
--- pspp/src/getline.c:1.10 Tue Nov 23 05:54:57 2004
+++ pspp/src/getline.c Sat Feb 5 12:42:57 2005
@@ -24,6 +24,7 @@
#include <errno.h>
#include <stdlib.h>
#include "alloc.h"
+#include "command.h"
#include "error.h"
#include "filename.h"
#include "lexer.h"
@@ -43,6 +44,10 @@
int getl_mode;
int getl_prompt;
+#if HAVE_LIBREADLINE
+#include <readline/readline.h>
+#endif
+
#if HAVE_LIBHISTORY
static char *history_file;
@@ -57,6 +62,7 @@
#endif /* no readline/history.h */
#endif /* -lhistory */
+
extern struct cmd_set cmd;
static struct string getl_include_path;
@@ -75,6 +81,9 @@
ds_create (&getl_include_path,
fn_getenv_default ("STAT_INCLUDE_PATH", include_path));
ds_init (&getl_buf, 256);
+#if HAVE_LIBREADLINE
+ rl_completion_entry_function = pspp_completion_function;
+#endif
}
/* Close getline. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] Changes to pspp/src/getline.c,
John Darrington <=