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 |
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 |
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 |
|
|
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. */ |
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 |