Import of tac_plus.v8.tar.gz: 173206 bytes, md5:
[tac_plus.git] / tac_regexp.h
1 /* 
2    Copyright (c) 1995-1998 by Cisco systems, Inc.
3
4    Permission to use, copy, modify, and distribute this software for
5    any purpose and without fee is hereby granted, provided that this
6    copyright and permission notice appear on all copies of the
7    software and supporting documentation, the name of Cisco Systems,
8    Inc. not be used in advertising or publicity pertaining to
9    distribution of the program without specific prior permission, and
10    notice be given in supporting documentation that modification,
11    copying and distribution is by permission of Cisco Systems, Inc.
12
13    Cisco Systems, Inc. makes no representations about the suitability
14    of this software for any purpose.  THIS SOFTWARE IS PROVIDED ``AS
15    IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
16    WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17    FITNESS FOR A PARTICULAR PURPOSE.
18 */
19
20 /*
21  * Definitions etc. for regexp(3) routines.
22  *
23  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
24  * not the System V one.
25  */
26 #define NSUBEXP  10
27 typedef struct regexp {
28         char *startp[NSUBEXP];
29         char *endp[NSUBEXP];
30         char regstart;          /* Internal use only. */
31         char reganch;           /* Internal use only. */
32         char *regmust;          /* Internal use only. */
33         int regmlen;            /* Internal use only. */
34         char program[1];        /* Unwarranted chumminess with compiler. */
35 } regexp;
36
37 extern regexp *regcomp();
38 extern int regexec();
39 extern void regsub();
40 extern void regerror();