[Pcre-svn] [775] code/trunk: Fix pcretest not forgetting JIT…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [775] code/trunk: Fix pcretest not forgetting JIT after it has been used once.
Revision: 775
          http://vcs.pcre.org/viewvc?view=rev&revision=775
Author:   ph10
Date:     2011-12-01 10:35:30 +0000 (Thu, 01 Dec 2011)


Log Message:
-----------
Fix pcretest not forgetting JIT after it has been used once.

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcretest.c
    code/trunk/testdata/testoutput14


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2011-12-01 06:08:45 UTC (rev 774)
+++ code/trunk/ChangeLog    2011-12-01 10:35:30 UTC (rev 775)
@@ -84,6 +84,9 @@
     refactoring has had the pleasing side effect of removing one argument from
     the match() function, thus reducing its stack requirements.


+19. If the /S+ option was used in pcretest to study a pattern using JIT, 
+    subsequent uses of /S (without +) incorrectly behaved like /S+.
+    


Version 8.20 21-Oct-2011
------------------------

Modified: code/trunk/pcretest.c
===================================================================
--- code/trunk/pcretest.c    2011-12-01 06:08:45 UTC (rev 774)
+++ code/trunk/pcretest.c    2011-12-01 10:35:30 UTC (rev 775)
@@ -1632,6 +1632,7 @@
   /* Look for options after final delimiter */


options = 0;
+ study_options = 0;
log_store = showstore; /* default from command line */

while (*pp != 0)

Modified: code/trunk/testdata/testoutput14
===================================================================
--- code/trunk/testdata/testoutput14    2011-12-01 06:08:45 UTC (rev 774)
+++ code/trunk/testdata/testoutput14    2011-12-01 10:35:30 UTC (rev 775)
@@ -42,9 +42,7 @@
 No options
 No first char
 No need char
-Subject length lower bound = -1
-No set of starting bytes
-JIT study was successful
+Study returned NULL


 /(?(R)a*(?1)|((?R))b)/S+
     aaaabcde