aboutsummaryrefslogtreecommitdiff
path: root/search.h
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2011-03-31 01:00:31 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2011-03-31 01:00:31 +0000
commitf592be44eb2190db09b8cee428090a232d528910 (patch)
tree25f24f997413fa2046d372ed908c8b9cb7184e9b /search.h
parent4d860275f5181ade333c8ae2cc800b925ef43d89 (diff)
downloadsrc-f592be44eb2190db09b8cee428090a232d528910.tar.gz
src-f592be44eb2190db09b8cee428090a232d528910.zip
Notes
Diffstat (limited to 'search.h')
-rw-r--r--search.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/search.h b/search.h
index 3df54865feef..676bbe2e35b9 100644
--- a/search.h
+++ b/search.h
@@ -1,4 +1,4 @@
-/* $NetBSD: search.h,v 1.2 1997/01/11 06:48:09 lukem Exp $ */
+/* $NetBSD: search.h,v 1.5 2000/09/04 22:06:32 lukem Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -41,30 +41,30 @@
/*
* el.search.h: Line and history searching utilities
*/
-#ifndef _h_el_search
-#define _h_el_search
+#ifndef _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 */