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