summaryrefslogtreecommitdiff
path: root/regcomp_internal.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-18 10:59:12 +0100
committerYves Orton <demerphq@gmail.com>2023-03-19 05:27:01 +0800
commitb16c8aa582a2f6fe12c09c7eb93ada71b0d85300 (patch)
tree443326f34d5925565437a727c8056ab6674ad6a4 /regcomp_internal.h
parent1ed8aa9fdf7c8713cc895a86e3f9f22f89dfd200 (diff)
downloadperl-b16c8aa582a2f6fe12c09c7eb93ada71b0d85300.tar.gz
regcomp.h - document RE_PESSIMISTIC_PARENS and VOLATILE_REF defines
These two defines are related to each other, and even though VOLATILE_REF is not explicitly used in regexec.c which would require it being placed in regcomp.h, it is implicitly, and RE_PESSIMISTIC_PARENS *is* used in regexec.c. So put them both in regcomp.h and document them together. This adds copious documentation for what they both are for. RE_PESSIMISTIC_PARENS is effectively a "build option" (although intended for debugging regex engine bugs only). VOLATILE_REF is the name of a flag which is used to mark REF nodes as requiring special backtracking support in regexec.c
Diffstat (limited to 'regcomp_internal.h')
-rw-r--r--regcomp_internal.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/regcomp_internal.h b/regcomp_internal.h
index 4c18f1bee6..6ea42640ed 100644
--- a/regcomp_internal.h
+++ b/regcomp_internal.h
@@ -1258,6 +1258,4 @@ static const scan_data_t zero_scan_data = {
#define REGNODE_STEP_OVER(ret,t1,t2) \
NEXT_OFF(REGNODE_p(ret)) = ((sizeof(t1)+sizeof(t2))/sizeof(regnode))
-#define VOLATILE_REF 1
-
#endif /* REGCOMP_INTERNAL_H */