Revision: 931
http://www.exim.org/viewvc/pcre2?view=rev&revision=931
Author: ph10
Date: 2018-04-21 17:43:49 +0100 (Sat, 21 Apr 2018)
Log Message:
-----------
Minor code tidy.
Modified Paths:
--------------
code/trunk/ChangeLog
code/trunk/src/pcre2_dfa_match.c
Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog 2018-04-19 16:52:57 UTC (rev 930)
+++ code/trunk/ChangeLog 2018-04-21 16:43:49 UTC (rev 931)
@@ -49,6 +49,8 @@
(b) pcre2grep snprintf() workaround as used elsewhere in the tree.
(c) Support for non-C99 snprintf() that returns -1 in the overflow case.
+
+11. Minor tidy of pcre2_dfa_matgch() code.
Version 10.31 12-February-2018
Modified: code/trunk/src/pcre2_dfa_match.c
===================================================================
--- code/trunk/src/pcre2_dfa_match.c 2018-04-19 16:52:57 UTC (rev 930)
+++ code/trunk/src/pcre2_dfa_match.c 2018-04-21 16:43:49 UTC (rev 931)
@@ -2615,8 +2615,6 @@
case OP_COND:
case OP_SCOND:
{
- PCRE2_SIZE local_offsets[1000];
- int local_workspace[1000];
int codelink = (int)GET(code, 1);
PCRE2_UCHAR condcode;
@@ -2672,6 +2670,8 @@
else
{
+ PCRE2_SIZE local_offsets[2];
+ int local_workspace[1000];
int rc;
PCRE2_SPTR asscode = code + LINK_SIZE + 1;
PCRE2_SPTR endasscode = asscode + GET(asscode, 1);