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