diff --git a/history.h b/history.h index a6468ec..d6791df 100644 --- a/history.h +++ b/history.h @@ -28,4 +28,12 @@ extern char *lastHist(Hist *hist); extern char *nextHist(Hist *hist); extern char *prevHist(Hist *hist); +#ifdef USE_HISTORY +extern int loadHistory(Hist *hist); +extern void saveHistory(Hist *hist, size_t size); +extern void ldHist(void); +#else /* not USE_HISTORY */ +#define ldHist nulcmd +#endif /* not USE_HISTORY */ + #endif /* HISTORY_H */ diff --git a/proto.h b/proto.h index dd7a0eb..0d1fa96 100644 --- a/proto.h +++ b/proto.h @@ -391,11 +391,6 @@ extern char *inputLineHistSearch(char *prompt, char *def_str, int flag, extern Str unescape_spaces(Str s); #ifdef USE_HISTORY extern Buffer *historyBuffer(Hist *hist); -extern int loadHistory(Hist *hist); -extern void saveHistory(Hist *hist, size_t size); -extern void ldHist(void); -#else /* not USE_HISTORY */ -#define ldHist nulcmd #endif /* not USE_HISTORY */ extern double log_like(int x); extern struct table *newTable(void);