[Pcre-svn] [673] code/trunk/pcre_study.c: Update comments.

トップ ページ
このメッセージを削除
著者: Subversion repository
日付:  
To: pcre-svn
題目: [Pcre-svn] [673] code/trunk/pcre_study.c: Update comments.
Revision: 673
          http://vcs.pcre.org/viewvc?view=rev&revision=673
Author:   ph10
Date:     2011-08-25 17:06:03 +0100 (Thu, 25 Aug 2011)


Log Message:
-----------
Update comments.

Modified Paths:
--------------
    code/trunk/pcre_study.c


Modified: code/trunk/pcre_study.c
===================================================================
--- code/trunk/pcre_study.c    2011-08-23 16:45:55 UTC (rev 672)
+++ code/trunk/pcre_study.c    2011-08-25 16:06:03 UTC (rev 673)
@@ -1293,7 +1293,10 @@
   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 @@
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);