| 89 |
|
|
| 90 |
|
|
| 91 |
|
|
| 92 |
#ifdef DEBUG |
#ifdef PCRE_DEBUG |
| 93 |
/************************************************* |
/************************************************* |
| 94 |
* Debugging function to print chars * |
* Debugging function to print chars * |
| 95 |
*************************************************/ |
*************************************************/ |
| 141 |
{ |
{ |
| 142 |
USPTR p = md->start_subject + md->offset_vector[offset]; |
USPTR p = md->start_subject + md->offset_vector[offset]; |
| 143 |
|
|
| 144 |
#ifdef DEBUG |
#ifdef PCRE_DEBUG |
| 145 |
if (eptr >= md->end_subject) |
if (eptr >= md->end_subject) |
| 146 |
printf("matching subject <null>"); |
printf("matching subject <null>"); |
| 147 |
else |
else |
| 254 |
#ifndef NO_RECURSE |
#ifndef NO_RECURSE |
| 255 |
#define REGISTER register |
#define REGISTER register |
| 256 |
|
|
| 257 |
#ifdef DEBUG |
#ifdef PCRE_DEBUG |
| 258 |
#define RMATCH(ra,rb,rc,rd,re,rf,rg,rw) \ |
#define RMATCH(ra,rb,rc,rd,re,rf,rg,rw) \ |
| 259 |
{ \ |
{ \ |
| 260 |
printf("match() called in line %d\n", __LINE__); \ |
printf("match() called in line %d\n", __LINE__); \ |
| 622 |
/* OK, now we can get on with the real code of the function. Recursive calls |
/* OK, now we can get on with the real code of the function. Recursive calls |
| 623 |
are specified by the macro RMATCH and RRETURN is used to return. When |
are specified by the macro RMATCH and RRETURN is used to return. When |
| 624 |
NO_RECURSE is *not* defined, these just turn into a recursive call to match() |
NO_RECURSE is *not* defined, these just turn into a recursive call to match() |
| 625 |
and a "return", respectively (possibly with some debugging if DEBUG is |
and a "return", respectively (possibly with some debugging if PCRE_DEBUG is |
| 626 |
defined). However, RMATCH isn't like a function call because it's quite a |
defined). However, RMATCH isn't like a function call because it's quite a |
| 627 |
complicated macro. It has to be used in one particular way. This shouldn't, |
complicated macro. It has to be used in one particular way. This shouldn't, |
| 628 |
however, impact performance when true recursion is being used. */ |
however, impact performance when true recursion is being used. */ |
| 713 |
number = GET2(ecode, 1+LINK_SIZE); |
number = GET2(ecode, 1+LINK_SIZE); |
| 714 |
offset = number << 1; |
offset = number << 1; |
| 715 |
|
|
| 716 |
#ifdef DEBUG |
#ifdef PCRE_DEBUG |
| 717 |
printf("start bracket %d\n", number); |
printf("start bracket %d\n", number); |
| 718 |
printf("subject="); |
printf("subject="); |
| 719 |
pchars(eptr, 16, TRUE, md); |
pchars(eptr, 16, TRUE, md); |
| 1039 |
number = GET2(ecode, 1); |
number = GET2(ecode, 1); |
| 1040 |
offset = number << 1; |
offset = number << 1; |
| 1041 |
|
|
| 1042 |
#ifdef DEBUG |
#ifdef PCRE_DEBUG |
| 1043 |
printf("end bracket %d at *ACCEPT", number); |
printf("end bracket %d at *ACCEPT", number); |
| 1044 |
printf("\n"); |
printf("\n"); |
| 1045 |
#endif |
#endif |
| 1468 |
number = GET2(prev, 1+LINK_SIZE); |
number = GET2(prev, 1+LINK_SIZE); |
| 1469 |
offset = number << 1; |
offset = number << 1; |
| 1470 |
|
|
| 1471 |
#ifdef DEBUG |
#ifdef PCRE_DEBUG |
| 1472 |
printf("end bracket %d", number); |
printf("end bracket %d", number); |
| 1473 |
printf("\n"); |
printf("\n"); |
| 1474 |
#endif |
#endif |
| 5635 |
} |
} |
| 5636 |
} |
} |
| 5637 |
|
|
| 5638 |
#ifdef DEBUG /* Sigh. Some compilers never learn. */ |
#ifdef PCRE_DEBUG /* Sigh. Some compilers never learn. */ |
| 5639 |
printf(">>>> Match against: "); |
printf(">>>> Match against: "); |
| 5640 |
pchars(start_match, end_subject - start_match, TRUE, md); |
pchars(start_match, end_subject - start_match, TRUE, md); |
| 5641 |
printf("\n"); |
printf("\n"); |