xref: /minix3/minix/commands/cawf/regexp.h (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1*433d6423SLionel Sambuc /*
2*433d6423SLionel Sambuc  * Definitions etc. for regexp(3) routines.
3*433d6423SLionel Sambuc  *
4*433d6423SLionel Sambuc  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
5*433d6423SLionel Sambuc  * not the System V one.
6*433d6423SLionel Sambuc  */
7*433d6423SLionel Sambuc #define NSUBEXP  10
8*433d6423SLionel Sambuc typedef struct regexp {
9*433d6423SLionel Sambuc 	unsigned char *startp[NSUBEXP];
10*433d6423SLionel Sambuc 	unsigned char *endp[NSUBEXP];
11*433d6423SLionel Sambuc 	unsigned char regstart;		/* Internal use only. */
12*433d6423SLionel Sambuc 	unsigned char reganch;		/* Internal use only. */
13*433d6423SLionel Sambuc 	unsigned char *regmust;		/* Internal use only. */
14*433d6423SLionel Sambuc 	unsigned char regmlen;		/* Internal use only. */
15*433d6423SLionel Sambuc 	unsigned char program[1];	/* Unwarranted chumminess with
16*433d6423SLionel Sambuc 					 * compiler. */
17*433d6423SLionel Sambuc } regexp;
18