summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1991-06-06 23:28:14 +0000
committerLarry Wall <lwall@netlabs.com>1991-06-06 23:28:14 +0000
commit9ef589d8078fdf16316dec772c00e81b3c38fd22 (patch)
treee45650d2a4acb876fe2b249e8727e066c5be4c90 /regexp.h
parent352d5a3ab0aab9889c59e847643d265e062cec0b (diff)
downloadperl-9ef589d8078fdf16316dec772c00e81b3c38fd22.tar.gz
perl 4.0 patch 8: patch #4, continued
See patch #4.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/regexp.h b/regexp.h
index 600e630ee7..573187488e 100644
--- a/regexp.h
+++ b/regexp.h
@@ -5,9 +5,14 @@
* not the System V one.
*/
-/* $Header: regexp.h,v 4.0 91/03/20 01:39:23 lwall Locked $
+/* $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.
*
@@ -20,8 +25,10 @@ typedef struct regexp {
char *regstclass;
STR *regmust; /* Internal use only. */
int regback; /* Can regmust locate first try? */
+ int prelen; /* length of precomp */
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 */
char reganch; /* Internal use only. */
char do_folding; /* do case-insensitive match? */
@@ -30,5 +37,8 @@ typedef struct regexp {
char program[1]; /* Unwarranted chumminess with compiler. */
} regexp;
+#define ROPT_ANCH 1
+#define ROPT_SKIP 2
+
regexp *regcomp();
int regexec();