| 1352 |
#if !defined NOINFOCHECK |
#if !defined NOINFOCHECK |
| 1353 |
int old_first_char, old_options, old_count; |
int old_first_char, old_options, old_count; |
| 1354 |
#endif |
#endif |
| 1355 |
int count, backrefmax, first_char, need_char; |
int count, backrefmax, first_char, need_char, okpartial, jchanged; |
| 1356 |
int nameentrysize, namecount; |
int nameentrysize, namecount; |
| 1357 |
const uschar *nametable; |
const uschar *nametable; |
| 1358 |
|
|
| 1365 |
new_info(re, NULL, PCRE_INFO_NAMEENTRYSIZE, &nameentrysize); |
new_info(re, NULL, PCRE_INFO_NAMEENTRYSIZE, &nameentrysize); |
| 1366 |
new_info(re, NULL, PCRE_INFO_NAMECOUNT, &namecount); |
new_info(re, NULL, PCRE_INFO_NAMECOUNT, &namecount); |
| 1367 |
new_info(re, NULL, PCRE_INFO_NAMETABLE, (void *)&nametable); |
new_info(re, NULL, PCRE_INFO_NAMETABLE, (void *)&nametable); |
| 1368 |
|
new_info(re, NULL, PCRE_INFO_OKPARTIAL, &okpartial); |
| 1369 |
|
new_info(re, NULL, PCRE_INFO_JCHANGED, &jchanged); |
| 1370 |
|
|
| 1371 |
#if !defined NOINFOCHECK |
#if !defined NOINFOCHECK |
| 1372 |
old_count = pcre_info(re, &old_options, &old_first_char); |
old_count = pcre_info(re, &old_options, &old_first_char); |
| 1407 |
nametable += nameentrysize; |
nametable += nameentrysize; |
| 1408 |
} |
} |
| 1409 |
} |
} |
| 1410 |
|
|
| 1411 |
/* The NOPARTIAL bit is a private bit in the options, so we have |
if (!okpartial) fprintf(outfile, "Partial matching not supported\n"); |
|
to fish it out via out back door */ |
|
| 1412 |
|
|
| 1413 |
all_options = ((real_pcre *)re)->options; |
all_options = ((real_pcre *)re)->options; |
| 1414 |
if (do_flip) |
if (do_flip) all_options = byteflip(all_options, sizeof(all_options)); |
|
{ |
|
|
all_options = byteflip(all_options, sizeof(all_options)); |
|
|
} |
|
|
|
|
|
if ((all_options & PCRE_NOPARTIAL) != 0) |
|
|
fprintf(outfile, "Partial matching not supported\n"); |
|
| 1415 |
|
|
| 1416 |
if (get_options == 0) fprintf(outfile, "No options\n"); |
if (get_options == 0) fprintf(outfile, "No options\n"); |
| 1417 |
else fprintf(outfile, "Options:%s%s%s%s%s%s%s%s%s%s%s%s%s\n", |
else fprintf(outfile, "Options:%s%s%s%s%s%s%s%s%s%s%s%s%s\n", |
| 1428 |
((get_options & PCRE_UTF8) != 0)? " utf8" : "", |
((get_options & PCRE_UTF8) != 0)? " utf8" : "", |
| 1429 |
((get_options & PCRE_NO_UTF8_CHECK) != 0)? " no_utf8_check" : "", |
((get_options & PCRE_NO_UTF8_CHECK) != 0)? " no_utf8_check" : "", |
| 1430 |
((get_options & PCRE_DUPNAMES) != 0)? " dupnames" : ""); |
((get_options & PCRE_DUPNAMES) != 0)? " dupnames" : ""); |
| 1431 |
|
|
| 1432 |
|
if (jchanged) fprintf(outfile, "Duplicate name status changes\n"); |
| 1433 |
|
|
| 1434 |
switch (get_options & PCRE_NEWLINE_BITS) |
switch (get_options & PCRE_NEWLINE_BITS) |
| 1435 |
{ |
{ |