summaryrefslogtreecommitdiff
path: root/pcre_study.c
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-08-25 16:06:03 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-08-25 16:06:03 +0000
commit6cdbeffaa279d89159cd6c22376b19c0f50bc21d (patch)
tree940c24d26590da19e6e9300c71284846e9e17c1e /pcre_study.c
parentdab7f58df475a277ee87a3121f42342d05617775 (diff)
downloadpcre-6cdbeffaa279d89159cd6c22376b19c0f50bc21d.tar.gz
Update comments.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@673 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_study.c')
-rw-r--r--pcre_study.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/pcre_study.c b/pcre_study.c
index cc0fb87..558aef9 100644
--- a/pcre_study.c
+++ b/pcre_study.c
@@ -1293,7 +1293,10 @@ switch(min = find_minlength(code, code, re->options, &had_accept, 0))
default: break;
}
-/* Return NULL if there's been an error or if no optimization is possible. */
+/* Return NULL if there's been an (internal) error or if no optimization is
+possible. A FALSE setting for bits_set is common when there are no obvious
+starting bytes. However a negative value of min occurs only when the pattern
+contains \C, in other words, it's an exceptional case nowadays. */
if (*errorptr != NULL || (!bits_set && min < 0)) return NULL;
@@ -1332,6 +1335,8 @@ if (min >= 0)
study->minlength = min;
}
+/* If JIT support was compiled and requested, attempt the JIT compilation. */
+
extra->executable_jit = NULL;
#ifdef SUPPORT_JIT
if ((options & PCRE_STUDY_JIT_COMPILE) != 0) _pcre_jit_compile(re, extra);