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:
14: typedef 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:
26: void search_init();
27: void init_compex();
28: void free_compex();
29: char *getbracket();
30: void case_fold();
31: char *compile();
32: void grow_eb();
33: char *execute();
34: bool advance();
35: bool backref();
36: bool cclass();
37: #endif
Defined macros
NALTS
defined in line
12; used 1 times
NBRA
defined in line
10; used 7 times
Usage of this include