/[pcre]/code/trunk/pcre_dfa_exec.c
ViewVC logotype

Diff of /code/trunk/pcre_dfa_exec.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 654 by ph10, Tue Aug 2 11:00:40 2011 UTC revision 680 by ph10, Tue Sep 6 09:15:54 2011 UTC
# Line 768  for (;;) Line 768  for (;;)
768                  current_subject > start_subject + md->start_offset)))                  current_subject > start_subject + md->start_offset)))
769            {            {
770            if (match_count < 0) match_count = (offsetcount >= 2)? 1 : 0;            if (match_count < 0) match_count = (offsetcount >= 2)? 1 : 0;
771              else if (match_count > 0 && ++match_count * 2 >= offsetcount)              else if (match_count > 0 && ++match_count * 2 > offsetcount)
772                match_count = 0;                match_count = 0;
773            count = ((match_count == 0)? offsetcount : match_count * 2) - 2;            count = ((match_count == 0)? offsetcount : match_count * 2) - 2;
774            if (count > 0) memmove(offsets + 2, offsets, count * sizeof(int));            if (count > 0) memmove(offsets + 2, offsets, count * sizeof(int));

Legend:
Removed from v.654  
changed lines
  Added in v.680

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12