summaryrefslogtreecommitdiffstats
path: root/lib/libedit/search.h
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-10-01 08:41:27 +0000
committerobrien <obrien@FreeBSD.org>2001-10-01 08:41:27 +0000
commit90300f853673b3879ab4d6a60683ff69b564c58b (patch)
treef9436ba88ca8f8420af319b0a12dd175381b507b /lib/libedit/search.h
parentf805e363ed51ace3356b37eb173c3d6435c35022 (diff)
downloadFreeBSD-src-90300f853673b3879ab4d6a60683ff69b564c58b.zip
FreeBSD-src-90300f853673b3879ab4d6a60683ff69b564c58b.tar.gz
+ Sync with NetBSD, bringing in feature enhancements.
+ Convert to ANSI-C function definitions + style(9) Submitted by: kris
Diffstat (limited to 'lib/libedit/search.h')
-rw-r--r--lib/libedit/search.h36
1 files changed, 19 insertions, 17 deletions
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 */
OpenPOWER on IntegriCloud