Rev | Line | |
---|
[9] | 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 | #define ushort unsigned short
|
---|
| 8 | #define CHARBITS 0xffff
|
---|
| 9 | #define NSUBEXP 10
|
---|
| 10 | typedef struct regexp {
|
---|
| 11 | ushort *startp[NSUBEXP];
|
---|
| 12 | ushort *endp[NSUBEXP];
|
---|
| 13 | ushort regstart; /* Internal use only. */
|
---|
| 14 | ushort reganch; /* Internal use only. */
|
---|
| 15 | ushort *regmust; /* Internal use only. */
|
---|
| 16 | int regmlen; /* Internal use only. */
|
---|
| 17 | ushort program[1]; /* Unwarranted chumminess with compiler. */
|
---|
| 18 | } regexp;
|
---|
| 19 |
|
---|
| 20 | extern regexp *regcomp();
|
---|
| 21 | extern int regexec();
|
---|
| 22 | extern int regsub();
|
---|
| 23 | extern int regerror();
|
---|
Note:
See
TracBrowser
for help on using the repository browser.