summaryrefslogtreecommitdiff
path: root/src/regex.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-11-16 20:28:48 +0000
committerRichard M. Stallman <rms@gnu.org>1994-11-16 20:28:48 +0000
commit626a02c49b064a325677e5f09098abf78e1707df (patch)
tree94cb9dbefaba1d29a89b84bc99f8f7ae96fac9a5 /src/regex.h
parent5b9dc86d2ac4108984a722388cabb9a52d759f0b (diff)
downloademacs-626a02c49b064a325677e5f09098abf78e1707df.tar.gz
(RE_NO_POSIX_BACKTRACKING): New macro.
Diffstat (limited to 'src/regex.h')
-rw-r--r--src/regex.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/regex.h b/src/regex.h
index 55927f627c9..66791b0670b 100644
--- a/src/regex.h
+++ b/src/regex.h
@@ -130,6 +130,10 @@ typedef unsigned reg_syntax_t;
If not set, then an unmatched ) is invalid. */
#define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1)
+/* If this bit is set, succeed as soon as we match the whole pattern,
+ without further backtracking. */
+#define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
+
/* This global variable defines the particular regexp syntax to use (for
some interfaces). When a regexp is compiled, the syntax used is
stored in the pattern buffer, so changing this does not affect