[Pcre-svn] [890] code/trunk: A small code tidy for one error…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [890] code/trunk: A small code tidy for one error return.
Revision: 890
          http://www.exim.org/viewvc/pcre2?view=rev&revision=890
Author:   ph10
Date:     2017-12-16 16:07:29 +0000 (Sat, 16 Dec 2017)
Log Message:
-----------
A small code tidy for one error return.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2_match.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2017-12-12 16:23:01 UTC (rev 889)
+++ code/trunk/ChangeLog    2017-12-16 16:07:29 UTC (rev 890)
@@ -78,7 +78,11 @@
 a match, just its speed. (In fact, in this case, the starting 'a' was 
 subsequently picked up in the study.)


+19. A minor tidy in pcre2_match(): making all PCRE2_ERROR_ returns use "return"
+instead of "RRETURN" saves unwinding the backtracks in these cases (only one
+didn't).

+
Version 10.30 14-August-2017
----------------------------


Modified: code/trunk/src/pcre2_match.c
===================================================================
--- code/trunk/src/pcre2_match.c    2017-12-12 16:23:01 UTC (rev 889)
+++ code/trunk/src/pcre2_match.c    2017-12-16 16:07:29 UTC (rev 890)
@@ -5052,7 +5052,7 @@
         P = (heapframe *)((char *)N - frame_size);
         if (N->group_frame_type == (GF_RECURSE | number))
           {
-          if (Feptr == P->eptr) RRETURN(PCRE2_ERROR_RECURSELOOP);
+          if (Feptr == P->eptr) return PCRE2_ERROR_RECURSELOOP;
           break;
           }
         offset = P->last_group_offset;