ELinks 0.18.0
inphist.h File Reference
#include "util/lists.h"
Include dependency graph for inphist.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  input_history_entry
struct  input_history

Macros

#define INIT_INPUT_HISTORY(history)
#define add_to_history_list(history, entry)
#define del_from_history_list(history, entry)

Functions

void add_to_input_history (struct input_history *, char *, int)
void do_tab_compl (struct dialog_data *, struct input_history_entry list *)
void do_tab_compl_file (struct dialog_data *, struct input_history_entry list *)
void do_tab_compl_unambiguous (struct dialog_data *, struct input_history_entry list *)
int load_input_history (struct input_history *history, const char *filename)
int save_input_history (struct input_history *history, const char *filename)
void dlg_set_history (struct widget_data *)

Macro Definition Documentation

◆ add_to_history_list

#define add_to_history_list ( history,
entry )
Value:
do { \
add_to_list((history)->entries, entry); \
(history)->size++; \
if (!(history)->nosave) (history)->dirty = 1; \
} while (0)

◆ del_from_history_list

#define del_from_history_list ( history,
entry )
Value:
do { \
del_from_list((entry)); \
(history)->size--; \
if (!(history)->nosave) (history)->dirty = 1; \
} while (0)

◆ INIT_INPUT_HISTORY

#define INIT_INPUT_HISTORY ( history)
Value:
struct input_history history = { \
/* items: */ { D_LIST_HEAD_EL(history.entries) }, \
/* size: */ 0, \
/* dirty: */ 0, \
/* nosave: */ 0, \
}
#define D_LIST_HEAD_EL(x)
Definition lists.h:116
Definition inphist.h:18
struct input_history_entry list entries
Definition inphist.h:19

Function Documentation

◆ add_to_input_history()

void add_to_input_history ( struct input_history * history,
char * data,
int check_duplicate )

◆ dlg_set_history()

void dlg_set_history ( struct widget_data * widget_data)

◆ do_tab_compl()

void do_tab_compl ( struct dialog_data * dlg_data,
struct input_history_entry list * history )

◆ do_tab_compl_file()

void do_tab_compl_file ( struct dialog_data * dlg_data,
struct input_history_entry list * history )

◆ do_tab_compl_unambiguous()

void do_tab_compl_unambiguous ( struct dialog_data * dlg_data,
struct input_history_entry list * history )

◆ load_input_history()

int load_input_history ( struct input_history * history,
const char * filename )

◆ save_input_history()

int save_input_history ( struct input_history * history,
const char * filename )