[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / includes / ghcReadline.h
diff --git a/ghc/includes/ghcReadline.h b/ghc/includes/ghcReadline.h
new file mode 100644 (file)
index 0000000..e1e4057
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef GHC_READLINE_H
+#define GHC_READLINE_H
+
+#include <readline/readline.h>
+
+/* For some reason the following 3 aren't defined in readline.h */
+extern int rl_mark;
+extern int rl_done;
+extern int rl_pending_input;
+
+
+/* Our C Hackery stuff for Callbacks */
+typedef int KeyCode;
+extern StgStablePtr cbackList;
+extern int genericRlCback ();
+extern StgStablePtr haskellRlEntry;
+extern int current_narg, rl_return;
+extern KeyCode current_kc;
+extern char* rl_prompt_hack;
+
+#endif /* !GHC_READLINE_H */