From b16c8aa582a2f6fe12c09c7eb93ada71b0d85300 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sat, 18 Mar 2023 10:59:12 +0100 Subject: 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 --- regcomp_internal.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'regcomp_internal.h') 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 */ -- cgit v1.2.1