[Pcre-svn] [1398] code/trunk: Rename the (as yet unreleased)…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [1398] code/trunk: Rename the (as yet unreleased) PCRE_NO_AUTO_POSSESSIFY option to
Revision: 1398
          http://vcs.pcre.org/viewvc?view=rev&revision=1398
Author:   ph10
Date:     2013-11-12 15:20:26 +0000 (Tue, 12 Nov 2013)


Log Message:
-----------
Rename the (as yet unreleased) PCRE_NO_AUTO_POSSESSIFY option to
PCRE_NO_AUTO_POSSESS - no need to be so long - and to match (*NO_AUTO_POSSESS).

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/doc/pcre_compile.3
    code/trunk/doc/pcre_compile2.3
    code/trunk/doc/pcreapi.3
    code/trunk/doc/pcrecallout.3
    code/trunk/doc/pcrematching.3
    code/trunk/doc/pcrepattern.3
    code/trunk/doc/pcretest.1
    code/trunk/pcre.h.in
    code/trunk/pcre_compile.c
    code/trunk/pcre_internal.h
    code/trunk/pcretest.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/ChangeLog    2013-11-12 15:20:26 UTC (rev 1398)
@@ -85,7 +85,7 @@
 17. The compile-time code for auto-possessification has been refactored, based 
     on a patch by Zoltan Herczeg. It now happens after instead of during 
     compilation. The code is cleaner, and more cases are handled. The option 
-    PCRE_NO_AUTO_POSSESSIFY is added for testing purposes, and the -O and /O 
+    PCRE_NO_AUTO_POSSESS is added for testing purposes, and the -O and /O 
     options in pcretest are provided to set it. It can also be set by 
     (*NO_AUTO_POSSESS) at the start of a pattern.



Modified: code/trunk/doc/pcre_compile.3
===================================================================
--- code/trunk/doc/pcre_compile.3    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/doc/pcre_compile.3    2013-11-12 15:20:26 UTC (rev 1398)
@@ -60,7 +60,7 @@
   PCRE_NEWLINE_LF         Set LF as the newline sequence
   PCRE_NO_AUTO_CAPTURE    Disable numbered capturing paren-
                             theses (named ones available)
-  PCRE_NO_AUTO_POSSESSIFY Disable auto-possessification
+  PCRE_NO_AUTO_POSSESS    Disable auto-possessification
   PCRE_NO_START_OPTIMIZE  Disable match-time start optimizations 
   PCRE_NO_UTF16_CHECK     Do not check the pattern for UTF-16
                             validity (only relevant if


Modified: code/trunk/doc/pcre_compile2.3
===================================================================
--- code/trunk/doc/pcre_compile2.3    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/doc/pcre_compile2.3    2013-11-12 15:20:26 UTC (rev 1398)
@@ -65,7 +65,7 @@
   PCRE_NEWLINE_LF         Set LF as the newline sequence
   PCRE_NO_AUTO_CAPTURE    Disable numbered capturing paren-
                             theses (named ones available)
-  PCRE_NO_AUTO_POSSESSIFY Disable auto-possessification
+  PCRE_NO_AUTO_POSSESS    Disable auto-possessification
   PCRE_NO_START_OPTIMIZE  Disable match-time start optimizations 
   PCRE_NO_UTF16_CHECK     Do not check the pattern for UTF-16
                             validity (only relevant if


Modified: code/trunk/doc/pcreapi.3
===================================================================
--- code/trunk/doc/pcreapi.3    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/doc/pcreapi.3    2013-11-12 15:20:26 UTC (rev 1398)
@@ -1,4 +1,4 @@
-.TH PCREAPI 3 "09 November 2013" "PCRE 8.34"
+.TH PCREAPI 3 "12 November 2013" "PCRE 8.34"
 .SH NAME
 PCRE - Perl-compatible regular expressions
 .sp
@@ -812,7 +812,7 @@
 they acquire numbers in the usual way). There is no equivalent of this option
 in Perl.
 .sp
-  PCRE_NO_AUTO_POSSESSIFY
+  PCRE_NO_AUTO_POSSESS
 .sp
 If this option is set, it disables "auto-possessification". This is an 
 optimization that, for example, turns a+b into a++b in order to avoid
@@ -2812,7 +2812,7 @@
 even considering the possibility of backtracking into the repeated digits. For
 DFA matching, this means that only one possible match is found. If you really
 do want multiple matches in such cases, either use an ungreedy repeat
-("a\ed+?") or set the PCRE_NO_AUTO_POSSESSIFY option when compiling.
+("a\ed+?") or set the PCRE_NO_AUTO_POSSESS option when compiling.
 .
 .
 .SS "Error returns from \fBpcre_dfa_exec()\fP"
@@ -2889,6 +2889,6 @@
 .rs
 .sp
 .nf
-Last updated: 09 November 2013
+Last updated: 12 November 2013
 Copyright (c) 1997-2013 University of Cambridge.
 .fi


Modified: code/trunk/doc/pcrecallout.3
===================================================================
--- code/trunk/doc/pcrecallout.3    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/doc/pcrecallout.3    2013-11-12 15:20:26 UTC (rev 1398)
@@ -1,4 +1,4 @@
-.TH PCRECALLOUT 3 "09 November 2013" "PCRE 8.34"
+.TH PCRECALLOUT 3 "12 November 2013" "PCRE 8.34"
 .SH NAME
 PCRE - Perl-compatible regular expressions
 .SH SYNOPSIS
@@ -80,7 +80,7 @@
 .sp
 This indicates that when matching [bc] fails, there is no backtracking into a+
 and therefore the callouts that would be taken for the backtracks do not occur.
-You can disable the auto-possessify feature by passing PCRE_NO_AUTO_POSSESSIFY
+You can disable the auto-possessify feature by passing PCRE_NO_AUTO_POSSESS
 to \fBpcre_compile()\fP, or starting the pattern with (*NO_AUTO_POSSESS). If
 this is done in \fBpcretest\fP (using the /O qualifier), the output changes to
 this:
@@ -250,6 +250,6 @@
 .rs
 .sp
 .nf
-Last updated: 09 November 2013
+Last updated: 12 November 2013
 Copyright (c) 1997-2013 University of Cambridge.
 .fi


Modified: code/trunk/doc/pcrematching.3
===================================================================
--- code/trunk/doc/pcrematching.3    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/doc/pcrematching.3    2013-11-12 15:20:26 UTC (rev 1398)
@@ -1,4 +1,4 @@
-.TH PCREMATCHING 3 "01 October 2013" "PCRE 8.34"
+.TH PCREMATCHING 3 "12 November 2013" "PCRE 8.34"
 .SH NAME
 PCRE - Perl-compatible regular expressions
 .SH "PCRE MATCHING ALGORITHMS"
@@ -112,7 +112,7 @@
 even considering the possibility of backtracking into the repeated digits. For
 DFA matching, this means that only one possible match is found. If you really
 do want multiple matches in such cases, either use an ungreedy repeat
-("a\ed+?") or set the PCRE_NO_AUTO_POSSESSIFY option when compiling.
+("a\ed+?") or set the PCRE_NO_AUTO_POSSESS option when compiling.
 .P
 There are a number of features of PCRE regular expressions that are not
 supported by the alternative matching algorithm. They are as follows:
@@ -209,6 +209,6 @@
 .rs
 .sp
 .nf
-Last updated: 01 October 2013
+Last updated: 12 November 2013
 Copyright (c) 1997-2012 University of Cambridge.
 .fi


Modified: code/trunk/doc/pcrepattern.3
===================================================================
--- code/trunk/doc/pcrepattern.3    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/doc/pcrepattern.3    2013-11-12 15:20:26 UTC (rev 1398)
@@ -1,4 +1,4 @@
-.TH PCREPATTERN 3 "09 November 2013" "PCRE 8.34"
+.TH PCREPATTERN 3 "12 November 2013" "PCRE 8.34"
 .SH NAME
 PCRE - Perl-compatible regular expressions
 .SH "PCRE REGULAR EXPRESSION DETAILS"
@@ -91,7 +91,7 @@
 .rs
 .sp
 If a pattern starts with (*NO_AUTO_POSSESS), it has the same effect as setting 
-the PCRE_NO_AUTO_POSSESSIFY option at compile time. This stops PCRE from making
+the PCRE_NO_AUTO_POSSESS option at compile time. This stops PCRE from making
 quantifiers possessive when what follows cannot match the repeated item. For
 example, by default a+b is treated as a++b. For more details, see the
 .\" HREF
@@ -3223,6 +3223,6 @@
 .rs
 .sp
 .nf
-Last updated: 09 November 2013
+Last updated: 12 November 2013
 Copyright (c) 1997-2013 University of Cambridge.
 .fi


Modified: code/trunk/doc/pcretest.1
===================================================================
--- code/trunk/doc/pcretest.1    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/doc/pcretest.1    2013-11-12 15:20:26 UTC (rev 1398)
@@ -1,4 +1,4 @@
-.TH PCRETEST 1 "05 November 2013" "PCRE 8.34"
+.TH PCRETEST 1 "12 November 2013" "PCRE 8.34"
 .SH NAME
 pcretest - a program for testing Perl-compatible regular expressions.
 .SH SYNOPSIS
@@ -328,7 +328,7 @@
   \fB/M\fP              show compiled memory size
   \fB/m\fP              set PCRE_MULTILINE
   \fB/N\fP              set PCRE_NO_AUTO_CAPTURE
-  \fB/O\fP              set PCRE_NO_AUTO_POSSESSIFY 
+  \fB/O\fP              set PCRE_NO_AUTO_POSSESS
   \fB/P\fP              use the POSIX wrapper
   \fB/S\fP              study the pattern after compilation
   \fB/s\fP              set PCRE_DOTALL
@@ -385,7 +385,7 @@
   \fB/f\fP              PCRE_FIRSTLINE
   \fB/J\fP              PCRE_DUPNAMES
   \fB/N\fP              PCRE_NO_AUTO_CAPTURE
-  \fB/O\fP              PCRE_NO_AUTO_POSSESSIFY 
+  \fB/O\fP              PCRE_NO_AUTO_POSSESS
   \fB/U\fP              PCRE_UNGREEDY
   \fB/W\fP              PCRE_UCP
   \fB/X\fP              PCRE_EXTRA
@@ -1135,6 +1135,6 @@
 .rs
 .sp
 .nf
-Last updated: 05 November 2013
+Last updated: 12 November 2013
 Copyright (c) 1997-2013 University of Cambridge.
 .fi


Modified: code/trunk/pcre.h.in
===================================================================
--- code/trunk/pcre.h.in    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/pcre.h.in    2013-11-12 15:20:26 UTC (rev 1398)
@@ -151,7 +151,7 @@
 #define PCRE_DFA_SHORTEST       0x00010000  /*      D    ) Overlaid */


 /* This pair use the same bit. */
-#define PCRE_NO_AUTO_POSSESSIFY 0x00020000  /* C1        ) Overlaid */
+#define PCRE_NO_AUTO_POSSESS    0x00020000  /* C1        ) Overlaid */
 #define PCRE_DFA_RESTART        0x00020000  /*      D    ) Overlaid */


 #define PCRE_FIRSTLINE          0x00040000  /* C3       */


Modified: code/trunk/pcre_compile.c
===================================================================
--- code/trunk/pcre_compile.c    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/pcre_compile.c    2013-11-12 15:20:26 UTC (rev 1398)
@@ -8778,7 +8778,7 @@
   else if (STRNCMP_UC_C8(ptr+skipatstart+2, STRING_UCP_RIGHTPAR, 4) == 0)
     { skipatstart += 6; options |= PCRE_UCP; continue; }
   else if (STRNCMP_UC_C8(ptr+skipatstart+2, STRING_NO_AUTO_POSSESS_RIGHTPAR, 16) == 0)
-    { skipatstart += 18; options |= PCRE_NO_AUTO_POSSESSIFY; continue; }
+    { skipatstart += 18; options |= PCRE_NO_AUTO_POSSESS; continue; }
   else if (STRNCMP_UC_C8(ptr+skipatstart+2, STRING_NO_START_OPT_RIGHTPAR, 13) == 0)
     { skipatstart += 15; options |= PCRE_NO_START_OPTIMIZE; continue; }


@@ -9166,7 +9166,7 @@
/* Unless disabled, check whether single character iterators can be
auto-possessified. The function overwrites the appropriate opcode values. */

-if ((options & PCRE_NO_AUTO_POSSESSIFY) == 0)
+if ((options & PCRE_NO_AUTO_POSSESS) == 0)
auto_possessify((pcre_uchar *)codestart, utf, cd);

/* If there were any lookbehind assertions that contained OP_RECURSE

Modified: code/trunk/pcre_internal.h
===================================================================
--- code/trunk/pcre_internal.h    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/pcre_internal.h    2013-11-12 15:20:26 UTC (rev 1398)
@@ -1174,7 +1174,7 @@
 #define PUBLIC_COMPILE_OPTIONS \
   (PCRE_CASELESS|PCRE_EXTENDED|PCRE_ANCHORED|PCRE_MULTILINE| \
    PCRE_DOTALL|PCRE_DOLLAR_ENDONLY|PCRE_EXTRA|PCRE_UNGREEDY|PCRE_UTF8| \
-   PCRE_NO_AUTO_CAPTURE|PCRE_NO_AUTO_POSSESSIFY| \
+   PCRE_NO_AUTO_CAPTURE|PCRE_NO_AUTO_POSSESS| \
    PCRE_NO_UTF8_CHECK|PCRE_AUTO_CALLOUT|PCRE_FIRSTLINE| \
    PCRE_DUPNAMES|PCRE_NEWLINE_BITS|PCRE_BSR_ANYCRLF|PCRE_BSR_UNICODE| \
    PCRE_JAVASCRIPT_COMPAT|PCRE_UCP|PCRE_NO_START_OPTIMIZE|PCRE_NEVER_UTF)


Modified: code/trunk/pcretest.c
===================================================================
--- code/trunk/pcretest.c    2013-11-11 18:33:23 UTC (rev 1397)
+++ code/trunk/pcretest.c    2013-11-12 15:20:26 UTC (rev 1398)
@@ -2901,7 +2901,7 @@
 printf("  -i       show information about compiled patterns\n"
        "  -M       find MATCH_LIMIT minimum for each subject\n"
        "  -m       output memory used information\n"
-       "  -O       set PCRE_NO_AUTO_POSSESSIFY on each pattern\n" 
+       "  -O       set PCRE_NO_AUTO_POSSESS on each pattern\n" 
        "  -o <n>   set size of offsets vector to <n>\n");
 #if !defined NOPOSIX
 printf("  -p       use POSIX interface\n");
@@ -3086,7 +3086,7 @@
   else if (strcmp(arg, "-i") == 0) showinfo = 1;
   else if (strcmp(arg, "-d") == 0) showinfo = debug = 1;
   else if (strcmp(arg, "-M") == 0) default_find_match_limit = TRUE;
-  else if (strcmp(arg, "-O") == 0) default_options |= PCRE_NO_AUTO_POSSESSIFY;
+  else if (strcmp(arg, "-O") == 0) default_options |= PCRE_NO_AUTO_POSSESS;
 #if !defined NODFA
   else if (strcmp(arg, "-dfa") == 0) all_use_dfa = 1;
 #endif
@@ -3734,7 +3734,7 @@
       case 'K': do_mark = 1; break;
       case 'M': log_store = 1; break;
       case 'N': options |= PCRE_NO_AUTO_CAPTURE; break;
-      case 'O': options |= PCRE_NO_AUTO_POSSESSIFY; break;
+      case 'O': options |= PCRE_NO_AUTO_POSSESS; break;


 #if !defined NOPOSIX
       case 'P': do_posix = 1; break;
@@ -4180,7 +4180,7 @@
           ((get_options & PCRE_EXTRA) != 0)? " extra" : "",
           ((get_options & PCRE_UNGREEDY) != 0)? " ungreedy" : "",
           ((get_options & PCRE_NO_AUTO_CAPTURE) != 0)? " no_auto_capture" : "",
-          ((get_options & PCRE_NO_AUTO_POSSESSIFY) != 0)? " no_auto_possessify" : "",
+          ((get_options & PCRE_NO_AUTO_POSSESS) != 0)? " no_auto_possessify" : "",
           ((get_options & PCRE_UTF8) != 0)? " utf" : "",
           ((get_options & PCRE_UCP) != 0)? " ucp" : "",
           ((get_options & PCRE_NO_UTF8_CHECK) != 0)? " no_utf_check" : "",