This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 4.0 patch 7: patch #4, continued
[perl5.git] / regexp.h
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
8 /* $Header: regexp.h,v 4.0 91/03/20 01:39:23 lwall Locked $
9  *
10  * $Log:        regexp.h,v $
11  * Revision 4.0  91/03/20  01:39:23  lwall
12  * 4.0 baseline.
13  * 
14  */
15
16 typedef struct regexp {
17         char **startp;
18         char **endp;
19         STR *regstart;          /* Internal use only. */
20         char *regstclass;
21         STR *regmust;           /* Internal use only. */
22         int regback;            /* Can regmust locate first try? */
23         char *precomp;          /* pre-compilation regular expression */
24         char *subbase;          /* saved string so \digit works forever */
25         char *subend;           /* end of subbase */
26         char reganch;           /* Internal use only. */
27         char do_folding;        /* do case-insensitive match? */
28         char lastparen;         /* last paren matched */
29         char nparens;           /* number of parentheses */
30         char program[1];        /* Unwarranted chumminess with compiler. */
31 } regexp;
32
33 regexp *regcomp();
34 int regexec();