7627fecf10d500ec6e705a9194ea87e316041b47
[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 #endif
10
11 /* For some reason the following 3 aren't defined in readline.h */
12 extern int rl_mark;
13 extern int rl_done;
14 extern int rl_pending_input;
15
16
17 /* Our C Hackery stuff for Callbacks */
18 typedef I_ KeyCode;
19 extern StgStablePtr cbackList;
20 I_ genericRlCback PROTO((I_, I_));
21 extern StgStablePtr haskellRlEntry;
22 extern I_ current_narg, rl_return;
23 extern KeyCode current_kc;
24 extern char* rl_prompt_hack;
25
26 #endif /* !GHC_READLINE_H */