source: trunk/minix/commands/awk/regexp.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 638 bytes
Line 
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
10typedef 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
20extern regexp *regcomp();
21extern int regexec();
22extern int regsub();
23extern int regerror();
Note: See TracBrowser for help on using the repository browser.