1
/* $NetBSD: search.h,v 1.8 2003/10/18 23:27:36 christos Exp $ */
1
/* $NetBSD: search.h,v 1.9 2009/12/30 22:37:40 christos Exp $ */
4
4
* Copyright (c) 1992, 1993
43
43
#include "histedit.h"
45
45
typedef struct el_search_t {
46
char *patbuf; /* The pattern buffer */
46
Char *patbuf; /* The pattern buffer */
47
47
size_t patlen; /* Length of the pattern buffer */
48
48
int patdir; /* Direction of the last search */
49
49
int chadir; /* Character search direction */
50
char chacha; /* Character we are looking for */
50
Char chacha; /* Character we are looking for */
51
51
char chatflg; /* 0 if f, 1 if t */
55
protected int el_match(const char *, const char *);
55
protected int el_match(const Char *, const Char *);
56
56
protected int search_init(EditLine *);
57
57
protected void search_end(EditLine *);
58
protected int c_hmatch(EditLine *, const char *);
58
protected int c_hmatch(EditLine *, const Char *);
59
59
protected void c_setpat(EditLine *);
60
60
protected el_action_t ce_inc_search(EditLine *, int);
61
61
protected el_action_t cv_search(EditLine *, int);
62
62
protected el_action_t ce_search_line(EditLine *, int);
63
protected el_action_t cv_repeat_srch(EditLine *, int);
64
protected el_action_t cv_csearch(EditLine *, int, int, int, int);
63
protected el_action_t cv_repeat_srch(EditLine *, Int);
64
protected el_action_t cv_csearch(EditLine *, int, Int, int, int);
66
66
#endif /* _h_el_search */