Move declarations to the appropriate header file

This commit is contained in:
Rene Kita
2022-09-05 08:20:52 +02:00
parent 14c8274d16
commit e0c9a02784
2 changed files with 8 additions and 5 deletions

View File

@@ -28,4 +28,12 @@ extern char *lastHist(Hist *hist);
extern char *nextHist(Hist *hist); extern char *nextHist(Hist *hist);
extern char *prevHist(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 */ #endif /* HISTORY_H */

View File

@@ -391,11 +391,6 @@ extern char *inputLineHistSearch(char *prompt, char *def_str, int flag,
extern Str unescape_spaces(Str s); extern Str unescape_spaces(Str s);
#ifdef USE_HISTORY #ifdef USE_HISTORY
extern Buffer *historyBuffer(Hist *hist); 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 */ #endif /* not USE_HISTORY */
extern double log_like(int x); extern double log_like(int x);
extern struct table *newTable(void); extern struct table *newTable(void);