Lines Matching defs:TYPE
47 * hist.c: TYPE(History) access functions
60 typedef int (*history_gfun_t)(void *, TYPE(HistEvent) *);
61 typedef int (*history_efun_t)(void *, TYPE(HistEvent) *, const Char *);
62 typedef void (*history_vfun_t)(void *, TYPE(HistEvent) *);
63 typedef int (*history_sfun_t)(void *, TYPE(HistEvent) *, const int);
65 struct TYPE(history) {
103 private int history_setsize(TYPE(History) *, TYPE(HistEvent) *, int);
104 private int history_getsize(TYPE(History) *, TYPE(HistEvent) *);
105 private int history_setunique(TYPE(History) *, TYPE(HistEvent) *, int);
106 private int history_getunique(TYPE(History) *, TYPE(HistEvent) *);
107 private int history_set_fun(TYPE(History) *, TYPE(History) *);
108 private int history_load(TYPE(History) *, const char *);
109 private int history_save(TYPE(History) *, const char *);
110 private int history_save_fp(TYPE(History) *, FILE *);
111 private int history_prev_event(TYPE(History) *, TYPE(HistEvent) *, int);
112 private int history_next_event(TYPE(History) *, TYPE(HistEvent) *, int);
113 private int history_next_string(TYPE(History) *, TYPE(HistEvent) *, const Char *);
114 private int history_prev_string(TYPE(History) *, TYPE(HistEvent) *, const Char *);
123 TYPE(HistEvent) ev; /* What we return */
135 int flags; /* TYPE(History) flags */
139 private int history_def_next(void *, TYPE(HistEvent) *);
140 private int history_def_first(void *, TYPE(HistEvent) *);
141 private int history_def_prev(void *, TYPE(HistEvent) *);
142 private int history_def_last(void *, TYPE(HistEvent) *);
143 private int history_def_curr(void *, TYPE(HistEvent) *);
144 private int history_def_set(void *, TYPE(HistEvent) *, const int);
145 private void history_def_clear(void *, TYPE(HistEvent) *);
146 private int history_def_enter(void *, TYPE(HistEvent) *, const Char *);
147 private int history_def_add(void *, TYPE(HistEvent) *, const Char *);
148 private int history_def_del(void *, TYPE(HistEvent) *, const int);
150 private int history_def_init(void **, TYPE(HistEvent) *, int);
151 private int history_def_insert(history_t *, TYPE(HistEvent) *, const Char *);
152 private void history_def_delete(history_t *, TYPE(HistEvent) *, hentry_t *);
154 private int history_deldata_nth(history_t *, TYPE(HistEvent) *, int, void **);
155 private int history_set_nth(void *, TYPE(HistEvent) *, int);
213 history_def_first(void *p, TYPE(HistEvent) *ev)
233 history_def_last(void *p, TYPE(HistEvent) *ev)
253 history_def_next(void *p, TYPE(HistEvent) *ev)
278 history_def_prev(void *p, TYPE(HistEvent) *ev)
304 history_def_curr(void *p, TYPE(HistEvent) *ev)
325 history_def_set(void *p, TYPE(HistEvent) *ev, const int n)
352 history_set_nth(void *p, TYPE(HistEvent) *ev, int n)
376 history_def_add(void *p, TYPE(HistEvent) *ev, const Char *str)
402 history_deldata_nth(history_t *h, TYPE(HistEvent) *ev,
424 history_def_del(void *p, TYPE(HistEvent) *ev __attribute__((__unused__)),
443 TYPE(HistEvent) *ev __attribute__((__unused__)), hentry_t *hp)
465 history_def_insert(history_t *h, TYPE(HistEvent) *ev, const Char *str)
497 history_def_enter(void *p, TYPE(HistEvent) *ev, const Char *str)
524 history_def_init(void **p, TYPE(HistEvent) *ev __attribute__((__unused__)), int n)
549 history_def_clear(void *p, TYPE(HistEvent) *ev)
568 public TYPE(History) *
571 TYPE(HistEvent) ev;
572 TYPE(History) *h = (TYPE(History) *) h_malloc(sizeof(*h));
600 FUN(history,end)(TYPE(History) *h)
602 TYPE(HistEvent) ev;
616 history_setsize(TYPE(History) *h, TYPE(HistEvent) *ev, int num)
636 history_getsize(TYPE(History) *h, TYPE(HistEvent) *ev)
655 history_setunique(TYPE(History) *h, TYPE(HistEvent) *ev, int uni)
671 history_getunique(TYPE(History) *h, TYPE(HistEvent) *ev)
686 history_set_fun(TYPE(History) *h, TYPE(History) *nh)
688 TYPE(HistEvent) ev;
730 * TYPE(History) load function
733 history_load(TYPE(History) *h, const char *fname)
740 TYPE(HistEvent) ev;
791 * TYPE(History) save function
794 history_save_fp(TYPE(History) *h, FILE *fp)
796 TYPE(HistEvent) ev;
841 history_save(TYPE(History) *h, const char *fname)
860 history_prev_event(TYPE(History) *h, TYPE(HistEvent) *ev, int num)
874 history_next_evdata(TYPE(History) *h, TYPE(HistEvent) *ev, int num, void **d)
894 history_next_event(TYPE(History) *h, TYPE(HistEvent) *ev, int num)
911 history_prev_string(TYPE(History) *h, TYPE(HistEvent) *ev, const Char *str)
929 history_next_string(TYPE(History) *h, TYPE(HistEvent) *ev, const Char *str)
947 FUNW(history)(TYPE(History) *h, TYPE(HistEvent) *ev, int fun, ...)
1060 TYPE(History) hf;