X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=regexp.h;h=684851c548de41e6e258234f260836469c6b5e6e;hb=88bf70ddad663558df6e83dce8f369f639fc7dd6;hp=39620dae1f40d08c83050cc62caa3ec5ea14c5dd;hpb=00bf170e31343ccc4fac7a63f6a3acf5e76c3616;p=p5sagit%2Fp5-mst-13.2.git diff --git a/regexp.h b/regexp.h index 39620da..684851c 100644 --- a/regexp.h +++ b/regexp.h @@ -1,3 +1,6 @@ +/* regexp.h + */ + /* * Definitions etc. for regexp(3) routines. * @@ -5,35 +8,30 @@ * not the System V one. */ -/* $Header: regexp.h,v 3.0.1.1 90/08/09 05:12:55 lwall Locked $ - * - * $Log: regexp.h,v $ - * Revision 3.0.1.1 90/08/09 05:12:55 lwall - * patch19: $' broke on embedded nulls - * - * Revision 3.0 89/10/18 15:22:46 lwall - * 3.0 baseline - * - */ - -#define NSUBEXP 10 typedef struct regexp { - char *startp[NSUBEXP]; - char *endp[NSUBEXP]; - STR *regstart; /* Internal use only. */ + char **startp; + char **endp; + SV *regstart; /* Internal use only. */ char *regstclass; - STR *regmust; /* Internal use only. */ - int regback; /* Can regmust locate first try? */ + SV *regmust; /* Internal use only. */ + I32 regback; /* Can regmust locate first try? */ + I32 minlen; /* mininum possible length of $& */ + I32 prelen; /* length of precomp */ + U32 nparens; /* number of parentheses */ + U32 lastparen; /* last paren matched */ char *precomp; /* pre-compilation regular expression */ char *subbase; /* saved string so \digit works forever */ + char *subbeg; /* same, but not responsible for allocation */ char *subend; /* end of subbase */ + U16 naughty; /* how exponential is this pattern? */ char reganch; /* Internal use only. */ - char do_folding; /* do case-insensitive match? */ - char lastparen; /* last paren matched */ - char nparens; /* number of parentheses */ + char exec_tainted; /* Tainted information used by regexec? */ char program[1]; /* Unwarranted chumminess with compiler. */ } regexp; -regexp *regcomp(); -int regexec(); +#define ROPT_ANCH 3 +#define ROPT_ANCH_BOL 1 +#define ROPT_ANCH_GPOS 2 +#define ROPT_SKIP 4 +#define ROPT_IMPLICIT 8