⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inphist.h

📁 一个很有名的浏览器
💻 H
字号:
/* $Id: inphist.h,v 1.18 2004/11/19 17:19:05 zas Exp $ */#ifndef EL__BFU_INPHIST_H#define EL__BFU_INPHIST_H#include "util/lists.h"struct dialog_data;struct input_history_entry {	LIST_HEAD(struct input_history_entry);	unsigned char data[1]; /* Must be last. */};struct input_history {	struct list_head entries;	int size;	unsigned int dirty:1;	unsigned int nosave:1;};#define INIT_INPUT_HISTORY(history)				\	struct input_history history = {			\	/* items: */	{ D_LIST_HEAD(history.entries) },	\	/* size: */	0,					\	/* dirty: */	0,					\	/* nosave: */	0,					\	}#define add_to_history_list(history, entry)			\	do {							\		add_to_list((history)->entries, entry);		\		(history)->size++;				\		if (!(history)->nosave)	(history)->dirty = 1;	\	} while (0)#define del_from_history_list(history, entry)			\	do {							\		del_from_list((entry));				\		(history)->size--;				\		if (!(history)->nosave)	(history)->dirty = 1;	\	} while (0)void add_to_input_history(struct input_history *, unsigned char *, int);void do_tab_compl(struct dialog_data *, struct list_head *);void do_tab_compl_unambiguous(struct dialog_data *, struct list_head *);/* Load history file from elinks home. */int load_input_history(struct input_history *history, unsigned char *filename);/* Write history list to @filebane in elinks home. It returns a value different * from 0 in case of failure, 0 on success. */int save_input_history(struct input_history *history, unsigned char *filename);void dlg_set_history(struct widget_data *);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -