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

Diff of /code/trunk/pcre_exec.c

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

revision 1296 by ph10, Tue Mar 19 16:29:12 2013 UTC revision 1298 by ph10, Fri Mar 22 16:13:13 2013 UTC
# Line 1863  for (;;) Line 1863  for (;;)
1863            }            }
1864    
1865          /* PCRE does not allow THEN, SKIP, PRUNE or COMMIT to escape beyond a          /* PCRE does not allow THEN, SKIP, PRUNE or COMMIT to escape beyond a
1866          recursion; they are treated as NOMATCH. These codes are defined in a          recursion; they cause a NOMATCH for the entire recursion. These codes
1867          range that can be tested for. Any other return code is an error. */          are defined in a range that can be tested for. */
1868    
1869            if (rrc >= MATCH_BACKTRACK_MIN && rrc <= MATCH_BACKTRACK_MAX)
1870              RRETURN(MATCH_NOMATCH);
1871    
1872            /* Any return code other than NOMATCH is an error. */
1873    
1874          else if (rrc != MATCH_NOMATCH &&          if (rrc != MATCH_NOMATCH)
                  (rrc < MATCH_BACKTRACK_MIN || rrc > MATCH_BACKTRACK_MAX))  
1875            {            {
1876            DPRINTF(("Recursion gave error %d\n", rrc));            DPRINTF(("Recursion gave error %d\n", rrc));
1877            if (new_recursive.offset_save != stacksave)            if (new_recursive.offset_save != stacksave)

Legend:
Removed from v.1296  
changed lines
  Added in v.1298

  ViewVC Help
Powered by ViewVC 1.1.5