BSD 4_3 development
[unix-history] / usr / contrib / rn / search.h
CommitLineData
9c4b96b4
C
1/* $Header: search.h,v 4.3 85/05/01 11:50:46 lwall Exp $
2 *
3 * $Log: search.h,v $
4 * Revision 4.3 85/05/01 11:50:46 lwall
5 * Baseline for release with 4.3bsd.
6 *
7 */
8
9#ifndef NBRA
10#define NBRA 10 /* the maximum number of meta-brackets in an
11 RE -- \( \) */
12#define NALTS 10 /* the maximum number of \|'s */
13
14typedef struct {
15 char *expbuf; /* The compiled search string */
16 int eblen; /* Length of above buffer */
17 char *alternatives[NALTS]; /* The list of \| seperated alternatives */
18 char *braslist[NBRA]; /* RE meta-bracket start list */
19 char *braelist[NBRA]; /* RE meta-bracket end list */
20 char *brastr; /* saved match string after execute() */
21 char nbra; /* The number of meta-brackets int the most
22 recenlty compiled RE */
23 bool do_folding; /* fold upper and lower case? */
24} COMPEX;
25
26void search_init();
27void init_compex();
28void free_compex();
29char *getbracket();
30void case_fold();
31char *compile();
32void grow_eb();
33char *execute();
34bool advance();
35bool backref();
36bool cclass();
37#endif