minix/minix/commands/cawf/regexp.h
Lionel Sambuc 433d6423c3 New sources layout
Change-Id: Ic716f336b7071063997cf5b4dae6d50e0b4631e9
2014-07-31 16:00:30 +02:00

18 lines
551 B
C

/*
* Definitions etc. for regexp(3) routines.
*
* Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
* not the System V one.
*/
#define NSUBEXP 10
typedef struct regexp {
unsigned char *startp[NSUBEXP];
unsigned char *endp[NSUBEXP];
unsigned char regstart; /* Internal use only. */
unsigned char reganch; /* Internal use only. */
unsigned char *regmust; /* Internal use only. */
unsigned char regmlen; /* Internal use only. */
unsigned char program[1]; /* Unwarranted chumminess with
* compiler. */
} regexp;