6 #ifdef WITH_INCLUDED_REGEX
9 Copyright (c) 1995-1998 by Cisco systems, Inc.
11 Permission to use, copy, modify, and distribute this software for
12 any purpose and without fee is hereby granted, provided that this
13 copyright and permission notice appear on all copies of the
14 software and supporting documentation, the name of Cisco Systems,
15 Inc. not be used in advertising or publicity pertaining to
16 distribution of the program without specific prior permission, and
17 notice be given in supporting documentation that modification,
18 copying and distribution is by permission of Cisco Systems, Inc.
20 Cisco Systems, Inc. makes no representations about the suitability
21 of this software for any purpose. THIS SOFTWARE IS PROVIDED ``AS
22 IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
23 WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
24 FITNESS FOR A PARTICULAR PURPOSE.
29 * Definitions etc. for regexp(3) routines.
31 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
32 * not the System V one.
35 typedef struct tac_regexp {
36 const char *startp[NSUBEXP];
37 const char *endp[NSUBEXP];
38 char regstart; /* Internal use only. */
39 char reganch; /* Internal use only. */
40 char *regmust; /* Internal use only. */
41 int regmlen; /* Internal use only. */
42 char program[1]; /* Unwarranted chumminess with compiler. */
46 extern tac_regexp *tac_regcomp TAC_ARGS((const char *exp));
47 extern int tac_regexec TAC_ARGS((register tac_regexp *prog, register const char *string));
50 #endif /* WITH_INCLUDED_REGEX */
52 #endif /* TAC_REGEXP_H */