perl 3.0 patch #22 patch #19, continued
[p5sagit/p5-mst-13.2.git] / regexp.h
CommitLineData
378cc40b 1/*
2 * Definitions etc. for regexp(3) routines.
3 *
4 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
5 * not the System V one.
6 */
7
a687059c 8/* $Header: regexp.h,v 3.0 89/10/18 15:22:46 lwall Locked $
378cc40b 9 *
10 * $Log: regexp.h,v $
a687059c 11 * Revision 3.0 89/10/18 15:22:46 lwall
12 * 3.0 baseline
378cc40b 13 *
14 */
15
378cc40b 16#define NSUBEXP 10
17
18typedef struct regexp {
19 char *startp[NSUBEXP];
20 char *endp[NSUBEXP];
21 STR *regstart; /* Internal use only. */
22 char *regstclass;
23 STR *regmust; /* Internal use only. */
24 int regback; /* Can regmust locate first try? */
25 char *precomp; /* pre-compilation regular expression */
26 char *subbase; /* saved string so \digit works forever */
27 char reganch; /* Internal use only. */
28 char do_folding; /* do case-insensitive match? */
29 char lastparen; /* last paren matched */
30 char nparens; /* number of parentheses */
31 char program[1]; /* Unwarranted chumminess with compiler. */
32} regexp;
33
a687059c 34regexp *regcomp();
35int regexec();