17a10106fSbostic /*- 2*5da099d4Sbostic * Copyright (c) 1992, 1993 3*5da099d4Sbostic * The Regents of the University of California. All rights reserved. 47a10106fSbostic * 57a10106fSbostic * This code is derived from software contributed to Berkeley by 67a10106fSbostic * Christos Zoulas of Cornell University. 77a10106fSbostic * 87a10106fSbostic * %sccs.include.redist.c% 97a10106fSbostic * 10*5da099d4Sbostic * @(#)search.h 8.1 (Berkeley) 06/04/93 117a10106fSbostic */ 127a10106fSbostic 137a10106fSbostic /* 147a10106fSbostic * el.search.h: Line and history searching utilities 157a10106fSbostic */ 167a10106fSbostic #ifndef _h_el_search 177a10106fSbostic #define _h_el_search 187a10106fSbostic 19965a069bSmarc #include "histedit.h" 207a10106fSbostic 217a10106fSbostic typedef struct el_search_t { 227a10106fSbostic char *patbuf; /* The pattern buffer */ 237a10106fSbostic int patlen; /* Length of the pattern buffer */ 247a10106fSbostic int patdir; /* Direction of the last search */ 257a10106fSbostic int chadir; /* Character search direction */ 267a10106fSbostic char chacha; /* Character we are looking for */ 277a10106fSbostic } el_search_t; 287a10106fSbostic 297a10106fSbostic 308cbf4338Schristos protected int el_match __P((const char *, const char *)); 317a10106fSbostic protected int search_init __P((EditLine *)); 327a10106fSbostic protected void search_end __P((EditLine *)); 337a10106fSbostic protected int c_hmatch __P((EditLine *, const char *)); 347a10106fSbostic protected void c_setpat __P((EditLine *)); 357a10106fSbostic protected el_action_t ce_inc_search __P((EditLine *, int)); 367a10106fSbostic protected el_action_t cv_search __P((EditLine *, int)); 377a10106fSbostic protected el_action_t ce_search_line __P((EditLine *, char *, int)); 387a10106fSbostic protected el_action_t cv_repeat_srch __P((EditLine *, int)); 397a10106fSbostic protected el_action_t cv_csearch_back __P((EditLine *, int, int, int)); 407a10106fSbostic protected el_action_t cv_csearch_fwd __P((EditLine *, int, int, int)); 417a10106fSbostic 427a10106fSbostic #endif /* _h_el_search */ 43