diff options
author | Akinori Ito <aito@eie.yz.yamagata-u.ac.jp> | 2001-11-08 05:14:08 +0000 |
---|---|---|
committer | Akinori Ito <aito@eie.yz.yamagata-u.ac.jp> | 2001-11-08 05:14:08 +0000 |
commit | 68a07bf03b7624c9924065cce9ffa45497225834 (patch) | |
tree | c2adb06a909a8594445e4a3f8587c4bad46e3ecd /history.h | |
download | w3m-68a07bf03b7624c9924065cce9ffa45497225834.tar.gz w3m-68a07bf03b7624c9924065cce9ffa45497225834.zip |
Initial revision
Diffstat (limited to 'history.h')
-rw-r--r-- | history.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/history.h b/history.h new file mode 100644 index 0000000..034c708 --- /dev/null +++ b/history.h @@ -0,0 +1,29 @@ + +#ifndef HISTORY_H +#define HISTORY_H + +#include "textlist.h" +#include "hash.h" + +#define HIST_HASH_SIZE 127 + +typedef ListItem HistItem; + +typedef GeneralList HistList; + +typedef struct { + HistList *list; + HistItem *current; + Hash_hist *hash; +} Hist; + +extern Hist *newHist(); +extern HistItem *unshiftHist(Hist *hist, char *ptr); +extern HistItem *pushHist(Hist *hist, char *ptr); +extern HistItem *pushHashHist(Hist *hist, char *ptr); +extern HistItem *getHashHist(Hist *hist, char *ptr); +extern char *lastHist(Hist *hist); +extern char *nextHist(Hist *hist); +extern char *prevHist(Hist *hist); + +#endif /* HISTORY_H */ |