]>
cvs.zerfleddert.de Git - micropolis/blob - src/tcl/regexp.h
2 * Definitions etc. for regexp(3) routines.
4 * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
5 * not the System V one.
15 typedef struct regexp
{
16 char *startp
[NSUBEXP
];
18 char regstart
; /* Internal use only. */
19 char reganch
; /* Internal use only. */
20 char *regmust
; /* Internal use only. */
21 int regmlen
; /* Internal use only. */
22 char program
[1]; /* Unwarranted chumminess with compiler. */
25 extern regexp
*regcomp
_ANSI_ARGS_((char *exp
));
26 extern int regexec
_ANSI_ARGS_((regexp
*prog
, char *string
));
27 extern void regsub
_ANSI_ARGS_((regexp
*prog
, char *source
, char *dest
));
28 extern void regerror
_ANSI_ARGS_((char *msg
));