From 90300f853673b3879ab4d6a60683ff69b564c58b Mon Sep 17 00:00:00 2001 From: obrien Date: Mon, 1 Oct 2001 08:41:27 +0000 Subject: + Sync with NetBSD, bringing in feature enhancements. + Convert to ANSI-C function definitions + style(9) Submitted by: kris --- lib/libedit/search.h | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'lib/libedit/search.h') diff --git a/lib/libedit/search.h b/lib/libedit/search.h index 346b38c..8f9594a 100644 --- a/lib/libedit/search.h +++ b/lib/libedit/search.h @@ -34,35 +34,37 @@ * SUCH DAMAGE. * * @(#)search.h 8.1 (Berkeley) 6/4/93 + * $NetBSD: search.h,v 1.4 1999/07/02 15:21:27 simonb Exp $ + * $FreeBSD$ */ /* * el.search.h: Line and history searching utilities */ #ifndef _h_el_search -#define _h_el_search +#define _h_el_search #include "histedit.h" typedef struct el_search_t { - char *patbuf; /* The pattern buffer */ - int patlen; /* Length of the pattern buffer */ - int patdir; /* Direction of the last search */ - int chadir; /* Character search direction */ - char chacha; /* Character we are looking for */ + char *patbuf; /* The pattern buffer */ + size_t patlen; /* Length of the pattern buffer */ + int patdir; /* Direction of the last search */ + int chadir; /* Character search direction */ + char chacha; /* Character we are looking for */ } el_search_t; -protected int el_match __P((const char *, const char *)); -protected int search_init __P((EditLine *)); -protected void search_end __P((EditLine *)); -protected int c_hmatch __P((EditLine *, const char *)); -protected void c_setpat __P((EditLine *)); -protected el_action_t ce_inc_search __P((EditLine *, int)); -protected el_action_t cv_search __P((EditLine *, int)); -protected el_action_t ce_search_line __P((EditLine *, char *, int)); -protected el_action_t cv_repeat_srch __P((EditLine *, int)); -protected el_action_t cv_csearch_back __P((EditLine *, int, int, int)); -protected el_action_t cv_csearch_fwd __P((EditLine *, int, int, int)); +protected int el_match(const char *, const char *); +protected int search_init(EditLine *); +protected void search_end(EditLine *); +protected int c_hmatch(EditLine *, const char *); +protected void c_setpat(EditLine *); +protected el_action_t ce_inc_search(EditLine *, int); +protected el_action_t cv_search(EditLine *, int); +protected el_action_t ce_search_line(EditLine *, char *, int); +protected el_action_t cv_repeat_srch(EditLine *, int); +protected el_action_t cv_csearch_back(EditLine *, int, int, int); +protected el_action_t cv_csearch_fwd(EditLine *, int, int, int); #endif /* _h_el_search */ -- cgit v1.1