| /* |
| * Definitions etc. for regexp(3) routines. |
| * |
| * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof], |
| * not the System V one. |
| */ |
| |
| /* $Header$ |
| * |
| * $Log$ |
| * Revision 1.2 2004/09/01 14:33:24 criswell |
| * Migrating test suite out of the source tree. |
| * |
| * Revision 1.1 2004/02/17 22:21:16 criswell |
| * Initial commit of the perl Malloc Benchmark. I've cheated a little by |
| * generating the yacc output files and committing them directly, but it was |
| * easier than disabling the Bison Voodoo that gets executed by default. |
| * |
| * Revision 4.0 91/03/20 01:39:23 lwall |
| * 4.0 baseline. |
| * |
| */ |
| |
| typedef struct regexp { |
| char **startp; |
| char **endp; |
| STR *regstart; /* Internal use only. */ |
| char *regstclass; |
| STR *regmust; /* Internal use only. */ |
| int regback; /* Can regmust locate first try? */ |
| char *precomp; /* pre-compilation regular expression */ |
| char *subbase; /* saved string so \digit works forever */ |
| char *subend; /* end of subbase */ |
| char reganch; /* Internal use only. */ |
| char do_folding; /* do case-insensitive match? */ |
| char lastparen; /* last paren matched */ |
| char nparens; /* number of parentheses */ |
| char program[1]; /* Unwarranted chumminess with compiler. */ |
| } regexp; |
| |
| regexp *regcomp(); |
| int regexec(); |