xref: /original-bsd/lib/libcompat/regexp/regexp.h (revision 64e794fd)
1*64e794fdSbostic /*
2*64e794fdSbostic  * Definitions etc. for regexp(3) routines.
3*64e794fdSbostic  *
4*64e794fdSbostic  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
5*64e794fdSbostic  * not the System V one.
6*64e794fdSbostic  */
7*64e794fdSbostic #define NSUBEXP  10
8*64e794fdSbostic typedef struct regexp {
9*64e794fdSbostic 	char *startp[NSUBEXP];
10*64e794fdSbostic 	char *endp[NSUBEXP];
11*64e794fdSbostic 	char regstart;		/* Internal use only. */
12*64e794fdSbostic 	char reganch;		/* Internal use only. */
13*64e794fdSbostic 	char *regmust;		/* Internal use only. */
14*64e794fdSbostic 	int regmlen;		/* Internal use only. */
15*64e794fdSbostic 	char program[1];	/* Unwarranted chumminess with compiler. */
16*64e794fdSbostic } regexp;
17*64e794fdSbostic 
18*64e794fdSbostic extern regexp *regcomp();
19*64e794fdSbostic extern int regexec();
20*64e794fdSbostic extern void regsub();
21*64e794fdSbostic extern void regerror();
22