/[pcre]/code/tags/pcre-8.33/pcre_compile.c
ViewVC logotype

Diff of /code/tags/pcre-8.33/pcre_compile.c

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

revision 836 by ph10, Wed Dec 28 17:16:11 2011 UTC revision 842 by ph10, Sat Dec 31 15:19:04 2011 UTC
# Line 55  supporting internal functions that are n Line 55  supporting internal functions that are n
55    
56  /* When PCRE_DEBUG is defined, we need the pcre(16)_printint() function, which  /* When PCRE_DEBUG is defined, we need the pcre(16)_printint() function, which
57  is also used by pcretest. PCRE_DEBUG is not defined when building a production  is also used by pcretest. PCRE_DEBUG is not defined when building a production
58  library. We do not need to select pcre16_printint.c specially, because the  library. We do not need to select pcre16_printint.c specially, because the
59  COMPILE_PCREx macro will already be appropriately set. */  COMPILE_PCREx macro will already be appropriately set. */
60    
61  #ifdef PCRE_DEBUG  #ifdef PCRE_DEBUG
# Line 1708  for (;;) Line 1708  for (;;)
1708    int d;    int d;
1709    pcre_uchar *ce, *cs;    pcre_uchar *ce, *cs;
1710    register int op = *cc;    register int op = *cc;
1711    
1712    switch (op)    switch (op)
1713      {      {
1714      /* We only need to continue for OP_CBRA (normal capturing bracket) and      /* We only need to continue for OP_CBRA (normal capturing bracket) and
# Line 1769  for (;;) Line 1769  for (;;)
1769      case OP_ASSERTBACK_NOT:      case OP_ASSERTBACK_NOT:
1770      do cc += GET(cc, 1); while (*cc == OP_ALT);      do cc += GET(cc, 1); while (*cc == OP_ALT);
1771      cc += PRIV(OP_lengths)[*cc];      cc += PRIV(OP_lengths)[*cc];
1772      break;      break;
1773    
1774      /* Skip over things that don't match chars */      /* Skip over things that don't match chars */
1775    
# Line 3526  for (;; ptr++) Line 3526  for (;; ptr++)
3526      *lengthptr += (int)(code - last_code);      *lengthptr += (int)(code - last_code);
3527      DPRINTF(("length=%d added %d c=%c (0x%x)\n", *lengthptr,      DPRINTF(("length=%d added %d c=%c (0x%x)\n", *lengthptr,
3528        (int)(code - last_code), c, c));        (int)(code - last_code), c, c));
3529    
3530      /* If "previous" is set and it is not at the start of the work space, move      /* If "previous" is set and it is not at the start of the work space, move
3531      it back to there, in order to avoid filling up the work space. Otherwise,      it back to there, in order to avoid filling up the work space. Otherwise,
3532      if "previous" is NULL, reset the current code pointer to the start. */      if "previous" is NULL, reset the current code pointer to the start. */
# Line 4550  for (;; ptr++) Line 4550  for (;; ptr++)
4550  #ifdef SUPPORT_UTF  #ifdef SUPPORT_UTF
4551  #ifndef COMPILE_PCRE8  #ifndef COMPILE_PCRE8
4552          /* In non 8 bit mode, we can get here even if we are not in UTF mode. */          /* In non 8 bit mode, we can get here even if we are not in UTF mode. */
4553          if (!utf)          if (!utf)
4554            *class_uchardata++ = c;            *class_uchardata++ = c;
4555          else          else
4556  #endif  #endif

Legend:
Removed from v.836  
changed lines
  Added in v.842

  ViewVC Help
Powered by ViewVC 1.1.5