-/*
+#ifndef TAC_REGEXP_H
+#define TAC_REGEXP_H 1
+
+#include "tac_plus.h"
+
+#ifdef WITH_INCLUDED_REGEX
+
+/*
Copyright (c) 1995-1998 by Cisco systems, Inc.
Permission to use, copy, modify, and distribute this software for
FITNESS FOR A PARTICULAR PURPOSE.
*/
+
/*
* Definitions etc. for regexp(3) routines.
*
* not the System V one.
*/
#define NSUBEXP 10
-typedef struct regexp {
- char *startp[NSUBEXP];
- char *endp[NSUBEXP];
+typedef struct tac_regexp {
+ const char *startp[NSUBEXP];
+ const char *endp[NSUBEXP];
char regstart; /* Internal use only. */
char reganch; /* Internal use only. */
char *regmust; /* Internal use only. */
int regmlen; /* Internal use only. */
char program[1]; /* Unwarranted chumminess with compiler. */
-} regexp;
+} tac_regexp;
+
+
+extern tac_regexp *tac_regcomp TAC_ARGS((const char *exp));
+extern int tac_regexec TAC_ARGS((register tac_regexp *prog, register const char *string));
+
+
+#endif /* WITH_INCLUDED_REGEX */
-extern regexp *regcomp();
-extern int regexec();
-extern void regsub();
-extern void regerror();
+#endif /* TAC_REGEXP_H */