blob: 39620dae1f40d08c83050cc62caa3ec5ea14c5dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* Definitions etc. for regexp(3) routines.
*
* Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
* not the System V one.
*/
/* $Header: regexp.h,v 3.0.1.1 90/08/09 05:12:55 lwall Locked $
*
* $Log: regexp.h,v $
* Revision 3.0.1.1 90/08/09 05:12:55 lwall
* patch19: $' broke on embedded nulls
*
* Revision 3.0 89/10/18 15:22:46 lwall
* 3.0 baseline
*
*/
#define NSUBEXP 10
typedef struct regexp {
char *startp[NSUBEXP];
char *endp[NSUBEXP];
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();
|