This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl 2.0 (no announcement message available)
[perl5.git] / regexp.h
CommitLineData
378cc40b
LW
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
20typedef 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
36extern regexp *regcomp();
37extern int regexec();
38extern void regsub();
39extern void regerror();