Lines Matching defs:history

1 /*	$NetBSD: history.c,v 1.64 2024/07/11 05:41:24 kre Exp $	*/
38 static char sccsid[] = "@(#)history.c 8.1 (Berkeley) 6/4/93";
40 __RCSID("$NetBSD: history.c,v 1.64 2024/07/11 05:41:24 kre Exp $");
100 struct TYPE(history) {
101 void *h_ref; /* Argument for history fcns */
102 int h_ent; /* Last entry point for history */
110 history_vfun_t h_clear; /* Clear the history list */
156 * Builtin- history implementation
220 STR("can't read history from file"),
221 STR("can't write history"),
223 STR("history size negative"),
224 STR("function not allowed with other history-functions-set the default"),
246 * Default function to return the first event in the history.
266 * Default function to return the last event in the history.
286 * Default function to return the next event in the history.
311 * Default function to return the previous event in the history.
337 * Default function to return the current event in the history.
357 * Default function to set the current event in the history to the
384 * Default function to set the current event in the history to the
445 /* magic value to skip delete (just set to n-th history) */
532 * Default function to enter an item in the history
558 * Default history initialization function
584 * Default history cleanup function
607 FUN(history,init)(void)
635 * clean up history;
638 FUN(history,end)(TYPE(History) *h)
651 * Set history number of events
671 * Get number of events currently in history
690 * Set if adjacent equal events should not be entered in history.
706 * Get if adjacent equal events should not be entered in history.
721 * Set history functions
994 /* history():
995 * User interface to history functions.
998 FUNW(history)(TYPE(History) *h, TYPE(HistEvent) *ev, int fun, ...)
1141 FUN(history,end)(h);