e576bb2002-10-11Martin Nilsson /* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. */
1b10db2002-10-08Martin Nilsson 
ab6aec1997-02-11Fredrik Hübinette (Hubbe) #ifndef REGEXP_H #define REGEXP_H
1b10db2002-10-08Martin Nilsson 
ab6aec1997-02-11Fredrik Hübinette (Hubbe) /* * Definitions etc. for regexp(3) routines. * * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof], * not the System V one. */ #define NSUBEXP 40 typedef struct regexp { char *startp[NSUBEXP]; char *endp[NSUBEXP]; char regstart; /* Internal use only. */ char reganch; /* Internal use only. */ char *regmust; /* Internal use only. */
a17d762000-08-11Henrik Grubbström (Grubba)  size_t regmlen; /* Internal use only. */
ab6aec1997-02-11Fredrik Hübinette (Hubbe)  char program[1]; /* Unwarranted chumminess with compiler. */ } regexp;
21ba561997-02-11Fredrik Hübinette (Hubbe) /* Prototypes begin here */
61d8cd2015-04-28Martin Nilsson regexp *pike_regcomp(const char *exp);
21ba561997-02-11Fredrik Hübinette (Hubbe) int pike_regexec(regexp *prog, char *string); /* Prototypes end here */
ab6aec1997-02-11Fredrik Hübinette (Hubbe) #endif