From f07580d31d1148c4a1811c36b09ca0ad50d9576b Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Mon, 20 Dec 2021 16:25:43 +0100 Subject: Restructured repository and added automatic make dependency generation --- history.h | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 history.h (limited to 'history.h') diff --git a/history.h b/history.h deleted file mode 100644 index bbf4faa..0000000 --- a/history.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once - -#include "list.h" - -#include "wchar.h" - -#define HISTORY_MAX 100 - -struct inputln { - wchar_t *buf; - int len, cap; - int cur; - - struct link link; -}; - -struct history { - struct link list; - struct inputln *cmd, *query; -}; - -void history_init(struct history *history); -void history_free(struct history *history); - -void history_submit(struct history *history); - -void history_prev(struct history *history); -void history_next(struct history *history); - -void history_add(struct history *history, struct inputln *line); -void history_pop(struct inputln *line); - -struct inputln *inputln_init(void); -void inputln_free(struct inputln *ln); - -void inputln_left(struct inputln *line); -void inputln_right(struct inputln *line); - -void inputln_addch(struct inputln *line, wchar_t c); -void inputln_del(struct inputln *line, int n); - -void inputln_copy(struct inputln *dst, struct inputln *src); -void inputln_replace(struct inputln *line, const wchar_t *str); -- cgit v1.2.3-71-gd317