2 * Definitions etc. for regexp(3) routines.
4 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
5 * not the System V one.
8 /* $Header: regexp.h,v 2.0 88/06/05 00:10:53 root Exp $
11 * Revision 2.0 88/06/05 00:10:53 root
12 * Baseline version 2.0.
20 typedef struct regexp {
21 char *startp[NSUBEXP];
23 STR *regstart; /* Internal use only. */
25 STR *regmust; /* Internal use only. */
26 int regback; /* Can regmust locate first try? */
27 char *precomp; /* pre-compilation regular expression */
28 char *subbase; /* saved string so \digit works forever */
29 char reganch; /* Internal use only. */
30 char do_folding; /* do case-insensitive match? */
31 char lastparen; /* last paren matched */
32 char nparens; /* number of parentheses */
33 char program[1]; /* Unwarranted chumminess with compiler. */
36 extern regexp *regcomp();
39 extern void regerror();