perl 2.0 (no announcement message available)
[p5sagit/p5-mst-13.2.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 2.0 88/06/05 00:10:53 root Exp $
9  *
10  * $Log:        regexp.h,v $
11  * Revision 2.0  88/06/05  00:10:53  root
12  * Baseline version 2.0.
13  * 
14  */
15
16 #define ALIGN
17
18 #define NSUBEXP  10
19
20 typedef struct regexp {
21         char *startp[NSUBEXP];
22         char *endp[NSUBEXP];
23         STR *regstart;          /* Internal use only. */
24         char *regstclass;
25         STR *regmust;           /* Internal use only. */
26         int regback;            /* Can regmust locate first try? */
27         char *precomp;          /* pre-compilation regular expression */
28         char *subbase;          /* saved string so \digit works forever */
29         char reganch;           /* Internal use only. */
30         char do_folding;        /* do case-insensitive match? */
31         char lastparen;         /* last paren matched */
32         char nparens;           /* number of parentheses */
33         char program[1];        /* Unwarranted chumminess with compiler. */
34 } regexp;
35
36 extern regexp *regcomp();
37 extern int regexec();
38 extern void regsub();
39 extern void regerror();