minix/commands/cawf/regexp.h

18 lines
551 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
/*
* 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;