perl 5.003_01: cop.h
[p5sagit/p5-mst-13.2.git] / regexp.h
index 5731874..018312e 100644 (file)
--- a/regexp.h
+++ b/regexp.h
@@ -1,3 +1,6 @@
+/*    regexp.h
+ */
+
 /*
  * Definitions etc. for regexp(3) routines.
  *
@@ -5,40 +8,28 @@
  * not the System V one.
  */
 
-/* $RCSfile: regexp.h,v $$Revision: 4.0.1.1 $$Date: 91/06/07 11:51:18 $
- *
- * $Log:       regexp.h,v $
- * Revision 4.0.1.1  91/06/07  11:51:18  lwall
- * patch4: new copyright notice
- * patch4: // wouldn't use previous pattern if it started with a null character
- * patch4: $` was busted inside s///
- * 
- * Revision 4.0  91/03/20  01:39:23  lwall
- * 4.0 baseline.
- * 
- */
 
 typedef struct regexp {
        char **startp;
        char **endp;
-       STR *regstart;          /* Internal use only. */
+       SV *regstart;           /* Internal use only. */
        char *regstclass;
-       STR *regmust;           /* Internal use only. */
-       int regback;            /* Can regmust locate first try? */
-       int prelen;             /* length of precomp */
+       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 program[1];        /* Unwarranted chumminess with compiler. */
 } regexp;
 
 #define ROPT_ANCH 1
 #define ROPT_SKIP 2
-
-regexp *regcomp();
-int regexec();
+#define ROPT_IMPLICIT 4