Compile properly when IOCCSH_USE_READLINE is not defined.

This commit is contained in:
W. Eric Norum
2000-12-21 19:36:01 +00:00
parent 0af2304a36
commit 8ea97a12b5
+5 -6
View File
@@ -16,23 +16,22 @@
#include <readline/readline.h>
#include <readline/history.h>
char *epics_readline (const char *prompt)
{
return readline (prompt);
}
#else
/*
* Fake versions of some readline/history routines
*/
#define readline(p) do { } while(0)
#define stifle_history(n) do { } while(0)
#define add_history(l) do { } while(0)
#define rl_bind_key(c,f) do { } while(0)
#endif
char *epics_readline (const char *prompt)
{
return readline (prompt);
}
void epics_stifle_history (int n)
{
stifle_history (n);