Rewritten history implementation - uses mmap to save lots of memory and also allows incremental saving. The history is autosaved every five minutes and every five added entries

darcs-hash:20061020223649-ac50b-5e3e2c1e395feec0f5ac457149639f68d52d40f0.gz
This commit is contained in:
axel 2006-10-21 08:36:49 +10:00
parent 79f59e2a2d
commit 9dc1a7d5e9
2 changed files with 597 additions and 697 deletions

1290
history.c

File diff suppressed because it is too large Load diff

View file

@ -43,7 +43,7 @@ wchar_t *history_get( int idx );
void history_first();
/**
Make current point to last history item
Make current point to last history item
*/
void history_reset();
@ -61,7 +61,7 @@ const wchar_t *history_next_match( const wchar_t *str);
of the history.
*/
void history_set_mode( wchar_t *name );
void history_set_mode( const wchar_t *name );
/**