history.h (665B)
1 /* $Id$ */ 2 #ifndef HISTORY_H 3 #define HISTORY_H 4 5 #include "textlist.h" 6 #include "hash.h" 7 8 #define HIST_HASH_SIZE 127 9 10 typedef ListItem HistItem; 11 12 typedef GeneralList HistList; 13 14 typedef struct { 15 HistList *list; 16 HistItem *current; 17 Hash_sv *hash; 18 } Hist; 19 20 extern Hist *newHist(); 21 extern Hist *copyHist(Hist *hist); 22 extern HistItem *unshiftHist(Hist *hist, char *ptr); 23 extern HistItem *pushHist(Hist *hist, char *ptr); 24 extern HistItem *pushHashHist(Hist *hist, char *ptr); 25 extern HistItem *getHashHist(Hist *hist, char *ptr); 26 extern char *lastHist(Hist *hist); 27 extern char *nextHist(Hist *hist); 28 extern char *prevHist(Hist *hist); 29 30 #endif /* HISTORY_H */