[Pcre-svn] [460] code/trunk: Fix typo introduced by ChangeLo…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [460] code/trunk: Fix typo introduced by ChangeLog 107.
Revision: 460
          http://www.exim.org/viewvc/pcre2?view=rev&revision=460
Author:   ph10
Date:     2015-12-04 14:34:35 +0000 (Fri, 04 Dec 2015)
Log Message:
-----------
Fix typo introduced by ChangeLog 107.


Modified Paths:
--------------
    code/trunk/src/pcre2_compile.c
    code/trunk/testdata/testinput5
    code/trunk/testdata/testoutput5


Modified: code/trunk/src/pcre2_compile.c
===================================================================
--- code/trunk/src/pcre2_compile.c    2015-12-03 18:36:36 UTC (rev 459)
+++ code/trunk/src/pcre2_compile.c    2015-12-04 14:34:35 UTC (rev 460)
@@ -5058,26 +5058,26 @@


     if ((options & PCRE2_EXTENDED) != 0)
       {
-      PCRE2_SPTR p = ptr + 1;
+      ptr++;
       for (;;)
         {
-        while (MAX_255(*p) && (cb->ctypes[*p] & ctype_space) != 0) p++;
-        if (*p != CHAR_NUMBER_SIGN) break;
-        p++;
+        while (MAX_255(*ptr) && (cb->ctypes[*ptr] & ctype_space) != 0) ptr++;
+        if (*ptr != CHAR_NUMBER_SIGN) break;
+        ptr++;
         while (ptr < cb->end_pattern)
           {
-          if (IS_NEWLINE(p))         /* For non-fixed-length newline cases, */
+          if (IS_NEWLINE(ptr))         /* For non-fixed-length newline cases, */
             {                        /* IS_NEWLINE sets cb->nllen. */
-            p += cb->nllen;
+            ptr += cb->nllen;
             break;
             }
-          p++;
+          ptr++;
 #ifdef SUPPORT_UNICODE
-          if (utf) FORWARDCHAR(p);
+          if (utf) FORWARDCHAR(ptr);
 #endif
           }           /* Loop for comment characters */
         }             /* Loop for multiple comments */
-      ptr = p - 1;    /* Character before the next significant one. */
+      ptr--;          /* Last code unit of previous character. */
       }


     /* If the next character is '+', we have a possessive quantifier. This


Modified: code/trunk/testdata/testinput5
===================================================================
--- code/trunk/testdata/testinput5    2015-12-03 18:36:36 UTC (rev 459)
+++ code/trunk/testdata/testinput5    2015-12-04 14:34:35 UTC (rev 460)
@@ -1718,4 +1718,6 @@


/L(?#(|++<!(2)?/B,utf,ucp,auto_callout

+/(*UTF)C\x09((?<!'(?x)!*H? #\xcc\x9a[^$]/
+
# End of testinput5

Modified: code/trunk/testdata/testoutput5
===================================================================
--- code/trunk/testdata/testoutput5    2015-12-03 18:36:36 UTC (rev 459)
+++ code/trunk/testdata/testoutput5    2015-12-04 14:34:35 UTC (rev 460)
@@ -4168,4 +4168,7 @@
         End
 ------------------------------------------------------------------


+/(*UTF)C\x09((?<!'(?x)!*H? #\xcc\x9a[^$]/
+Failed: error 114 at offset 39: missing closing parenthesis
+
# End of testinput5