diff options
author | Phil Jones <philj56@gmail.com> | 2022-07-24 12:31:09 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-07-24 12:40:26 +0100 |
commit | 9e8af9d25106b615dabf956305f4ef80496ed412 (patch) | |
tree | 180ad86a9c1675777c83a9243db5129a01be9146 /src/history.h | |
parent | ee0ed3c506f8f45fce42cbabc1d9521382740924 (diff) |
Add drun mode.
This is a pretty simple implementation, but it should work for most
use cases. Notably, generic application names aren't used (though that
could be added without too much hassle), and neither are keywords (that
would be more difficult).
Diffstat (limited to 'src/history.h')
-rw-r--r-- | src/history.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/history.h b/src/history.h index 6fedecc..199e028 100644 --- a/src/history.h +++ b/src/history.h @@ -1,6 +1,7 @@ #ifndef HISTORY_H #define HISTORY_H +#include <stdbool.h> #include <stddef.h> struct program { @@ -24,8 +25,8 @@ void history_add(struct history *restrict vec, const char *restrict str); //void history_remove(struct history *restrict vec, const char *restrict str); [[nodiscard("memory leaked")]] -struct history history_load(void); +struct history history_load(bool drun); -void history_save(struct history *history); +void history_save(struct history *history, bool drun); #endif /* HISTORY_H */ |