2 * Definitions etc. for regexp(3) routines.
4 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
5 * not the System V one.
7 #define ushort unsigned short
8 #define CHARBITS 0xffff
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. */
20 extern regexp
*regcomp();
23 extern int regerror();