Commit | Line | Data |
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 | |
fe14fcc3 |
8 | /* $Header: regexp.h,v 4.0 91/03/20 01:39:23 lwall Locked $ |
378cc40b |
9 | * |
10 | * $Log: regexp.h,v $ |
fe14fcc3 |
11 | * Revision 4.0 91/03/20 01:39:23 lwall |
12 | * 4.0 baseline. |
378cc40b |
13 | * |
14 | */ |
15 | |
378cc40b |
16 | typedef struct regexp { |
fe14fcc3 |
17 | char **startp; |
18 | char **endp; |
378cc40b |
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 */ |
00bf170e |
25 | char *subend; /* end of subbase */ |
378cc40b |
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 | |
a687059c |
33 | regexp *regcomp(); |
34 | int regexec(); |