Remove history.h

This commit is contained in:
Jacob 2023-08-07 06:39:58 +02:00
parent 3bc8d85937
commit dd58bcdb74
4 changed files with 5 additions and 7 deletions

View file

@ -1,5 +1,9 @@
/* See LICENSE file for copyright and license details. */
static char **history;
static size_t histsz, histpos;
static void savehistory(char *input);
void loadhistory(void) {
FILE *fp = NULL;
static size_t cap = 0;

View file

@ -1,6 +0,0 @@
/* See LICENSE file for copyright and license details. */
static char *histfile;
static char **history;
static size_t histsz, histpos;
static void savehistory(char *input);

View file

@ -111,6 +111,7 @@ static int overridelines = 1; /* Allow overriding lines using keyb
static int overridecolumns = 1; /* Allow overriding columns using keybinds */
/* History options */
static char *histfile = NULL; /* History file, NULL means no history file */
static int maxhist = 64; /* Max number of history entries */
static int histdup = 0; /* If 1, record repeated histories */

View file

@ -180,7 +180,6 @@ static size_t listsize;
#include "libs/x11/inc.h"
#include "libs/wl/inc.h"
#include "libs/sort.h"
#include "libs/history.h"
static char *fonts[] = { font };