[project @ 1998-12-02 13:17:09 by simonm]
[ghc-hetmet.git] / ghc / lib / misc / cbits / ghcReadline.h
1 #ifndef GHC_READLINE_H
2 #define GHC_READLINE_H
3
4 /* Included to see the defn. the HAVE_* below */
5 #include "config.h"
6
7 #if HAVE_READLINE_READLINE_H
8 #include <readline/readline.h>
9 #include <readline/history.h>
10 #endif
11
12 /* For some reason the following 3 aren't defined in readline.h */
13 extern int rl_mark;
14 extern int rl_done;
15 extern int rl_pending_input;
16
17
18 /* Our C Hackery stuff for Callbacks */
19 typedef I_ KeyCode;
20 extern StgStablePtr cbackList;
21 I_ genericRlCback (I_, I_);
22 extern StgStablePtr haskellRlEntry;
23 extern I_ current_narg, rl_return;
24 extern KeyCode current_kc;
25 extern char* rl_prompt_hack;
26
27 #endif /* !GHC_READLINE_H */