00001 /* 00002 * Definitions etc. for regexp(3) routines. 00003 * 00004 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof], 00005 * not the System V one. 00006 */ 00007 #define NSUBEXP 10 00008 typedef struct regexp { 00009 char *startp[NSUBEXP]; 00010 char *endp[NSUBEXP]; 00011 char regstart; /* Internal use only. */ 00012 char reganch; /* Internal use only. */ 00013 char *regmust; /* Internal use only. */ 00014 int regmlen; /* Internal use only. */ 00015 char program[1]; /* Unwarranted chumminess with compiler. */ 00016 } regexp; 00017 00018 extern regexp *regcomp(); 00019 extern int regexec(); 00020 extern void regsub(); 00021 extern void regerror(); 00022 extern long last_regsize(); /* Denys Duchier, Dec 13, 1994 */
1.5.4