2 * Definitions etc. for regexp(3) routines.
4 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
5 * not the System V one.
7 * 11/04/02 (seiwald) - const-ing for string literals
14 typedef struct regexp
{
15 const char *startp
[NSUBEXP
];
16 const char *endp
[NSUBEXP
];
17 char regstart
; /* Internal use only */
18 char reganch
; /* Internal use only */
19 char *regmust
; /* Internal use only */
20 int regmlen
; /* Internal use only */
21 char program
[1]; /* unwarranted chumminess with compiler */
24 extern regexp
*regcomp (const char *exp
);
25 extern int regexec (regexp
*prog
, const char *string
);
26 extern void regerror (const char *s
);
29 * The first byte of the regexp internal "program" is actually this magic
30 * number; the start node begins in the second byte.