summaryrefslogtreecommitdiff
path: root/lib/libcompat/regexp
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-07-03 03:28:27 +0000
committerBruce Evans <bde@FreeBSD.org>1997-07-03 03:28:27 +0000
commit362c392f0b63a6237bcc68b8d813ae6b3d4912f2 (patch)
tree1c29d5f6c7460da80ad2b28a968ea7ba3d5b7ffe /lib/libcompat/regexp
parent25f5c3ba98f12a0bfabfe7aaeb2d692affb83fc8 (diff)
parent5500fdcd4f4839f2185e704508b3f6c2a11ccba6 (diff)
Notes
Diffstat (limited to 'lib/libcompat/regexp')
-rw-r--r--lib/libcompat/regexp/regexp.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libcompat/regexp/regexp.h b/lib/libcompat/regexp/regexp.h
new file mode 100644
index 000000000000..73d6bf412424
--- /dev/null
+++ b/lib/libcompat/regexp/regexp.h
@@ -0,0 +1,21 @@
+/*
+ * Definitions etc. for regexp(3) routines.
+ *
+ * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
+ * not the System V one.
+ */
+#define NSUBEXP 10
+typedef struct regexp {
+ char *startp[NSUBEXP];
+ char *endp[NSUBEXP];
+ char regstart; /* Internal use only. */
+ char reganch; /* Internal use only. */
+ char *regmust; /* Internal use only. */
+ int regmlen; /* Internal use only. */
+ char program[1]; /* Unwarranted chumminess with compiler. */
+} regexp;
+
+extern regexp *regcomp();
+extern int regexec();
+extern void regsub();
+extern void regerror();