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

Diff of /code/trunk/pcre.c

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

revision 49 by nigel, Sat Feb 24 21:39:33 2007 UTC revision 51 by nigel, Sat Feb 24 21:39:37 2007 UTC
# Line 1754  for (;; ptr++) Line 1754  for (;; ptr++)
1754            {            {
1755            condref = *ptr - '0';            condref = *ptr - '0';
1756            while (*(++ptr) != ')') condref = condref*10 + *ptr - '0';            while (*(++ptr) != ')') condref = condref*10 + *ptr - '0';
1757              if (condref == 0)
1758                {
1759                *errorptr = ERR35;
1760                goto FAILED;
1761                }
1762            ptr++;            ptr++;
1763            }            }
1764          else ptr--;          else ptr--;
# Line 2095  Argument: Line 2100  Argument:
2100    ptrptr      -> the address of the current pattern pointer    ptrptr      -> the address of the current pattern pointer
2101    errorptr    -> pointer to error message    errorptr    -> pointer to error message
2102    lookbehind  TRUE if this is a lookbehind assertion    lookbehind  TRUE if this is a lookbehind assertion
2103    condref     > 0 for OPT_CREF setting at start of conditional group    condref     >= 0 for OPT_CREF setting at start of conditional group
2104    reqchar     -> place to put the last required character, or a negative number    reqchar     -> place to put the last required character, or a negative number
2105    countlits   -> place to put the shortest literal count of any branch    countlits   -> place to put the shortest literal count of any branch
2106    cd          points to the data block with tables pointers    cd          points to the data block with tables pointers
# Line 2123  code += 3; Line 2128  code += 3;
2128  /* At the start of a reference-based conditional group, insert the reference  /* At the start of a reference-based conditional group, insert the reference
2129  number as an OP_CREF item. */  number as an OP_CREF item. */
2130    
2131  if (condref > 0)  if (condref >= 0)
2132    {    {
2133    *code++ = OP_CREF;    *code++ = OP_CREF;
2134    *code++ = condref;    *code++ = condref;

Legend:
Removed from v.49  
changed lines
  Added in v.51

  ViewVC Help
Powered by ViewVC 1.1.5