From 9e8af9d25106b615dabf956305f4ef80496ed412 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 24 Jul 2022 12:31:09 +0100 Subject: 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). --- src/history.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/history.h') 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 #include 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 */ -- cgit v1.2.3