forget difference between big and small commands - obsolete with vm.
[minix.git] / commands / awk / regexp.h
blobc5437a85d3b4783ca00ae020c713e9a3c777526e
1 /*
2 * Definitions etc. for regexp(3) routines.
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;
20 extern regexp *regcomp();
21 extern int regexec();
22 extern int regsub();
23 extern int regerror();