NetBSD/usr.bin/elvis/regexp.h

24 lines
639 B
C
Raw Normal View History

1993-03-21 12:45:37 +03:00
/*
* Definitions etc. for regexp(3) routines.
*
* Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
* not the System V one.
*
* $Id: regexp.h,v 1.2 1993/08/02 17:54:07 mycroft Exp $
1993-03-21 12:45:37 +03:00
*/
#define NSUBEXP 10
typedef struct regexp {
char *startp[NSUBEXP];
char *endp[NSUBEXP];
int minlen; /* length of shortest possible match */
char first; /* first character, if known; else \0 */
char bol; /* boolean: must start at beginning of line? */
char program[1]; /* Unwarranted chumminess with compiler. */
} regexp;
extern regexp *regcomp();
extern int regexec();
extern void regsub();
extern void regerror();