| 114 |
#include "pcreposix.h" |
#include "pcreposix.h" |
| 115 |
#endif |
#endif |
| 116 |
|
|
| 117 |
/* It is also possible, for the benefit of the version imported into Exim, to |
/* It is also possible, for the benefit of the version currently imported into |
| 118 |
build pcretest without support for UTF8 (define NOUTF8), without the interface |
Exim, to build pcretest without support for UTF8 (define NOUTF8), without the |
| 119 |
to the DFA matcher (NODFA), and without the doublecheck of the old "info" |
interface to the DFA matcher (NODFA), and without the doublecheck of the old |
| 120 |
function (define NOINFOCHECK). */ |
"info" function (define NOINFOCHECK). In fact, we automatically cut out the |
| 121 |
|
UTF8 support if PCRE is built without it. */ |
| 122 |
|
|
| 123 |
|
#ifndef SUPPORT_UTF8 |
| 124 |
|
#ifndef NOUTF8 |
| 125 |
|
#define NOUTF8 |
| 126 |
|
#endif |
| 127 |
|
#endif |
| 128 |
|
|
| 129 |
|
|
| 130 |
/* Other parameters */ |
/* Other parameters */ |
| 858 |
printf(" Default recursion depth limit = %d\n", rc); |
printf(" Default recursion depth limit = %d\n", rc); |
| 859 |
(void)pcre_config(PCRE_CONFIG_STACKRECURSE, &rc); |
(void)pcre_config(PCRE_CONFIG_STACKRECURSE, &rc); |
| 860 |
printf(" Match recursion uses %s\n", rc? "stack" : "heap"); |
printf(" Match recursion uses %s\n", rc? "stack" : "heap"); |
| 861 |
exit(0); |
goto EXIT; |
| 862 |
} |
} |
| 863 |
else if (strcmp(argv[op], "-help") == 0 || |
else if (strcmp(argv[op], "-help") == 0 || |
| 864 |
strcmp(argv[op], "--help") == 0) |
strcmp(argv[op], "--help") == 0) |
| 944 |
size_t size, regex_gotten_store; |
size_t size, regex_gotten_store; |
| 945 |
int do_study = 0; |
int do_study = 0; |
| 946 |
int do_debug = debug; |
int do_debug = debug; |
| 947 |
|
int debug_lengths = 1; |
| 948 |
int do_G = 0; |
int do_G = 0; |
| 949 |
int do_g = 0; |
int do_g = 0; |
| 950 |
int do_showinfo = showinfo; |
int do_showinfo = showinfo; |
| 1135 |
case 'S': do_study = 1; break; |
case 'S': do_study = 1; break; |
| 1136 |
case 'U': options |= PCRE_UNGREEDY; break; |
case 'U': options |= PCRE_UNGREEDY; break; |
| 1137 |
case 'X': options |= PCRE_EXTRA; break; |
case 'X': options |= PCRE_EXTRA; break; |
| 1138 |
|
case 'Z': debug_lengths = 0; |
| 1139 |
case '8': options |= PCRE_UTF8; use_utf8 = 1; break; |
case '8': options |= PCRE_UTF8; use_utf8 = 1; break; |
| 1140 |
case '?': options |= PCRE_NO_UTF8_CHECK; break; |
case '?': options |= PCRE_NO_UTF8_CHECK; break; |
| 1141 |
|
|
| 1337 |
if (do_debug) |
if (do_debug) |
| 1338 |
{ |
{ |
| 1339 |
fprintf(outfile, "------------------------------------------------------------------\n"); |
fprintf(outfile, "------------------------------------------------------------------\n"); |
| 1340 |
pcre_printint(re, outfile); |
pcre_printint(re, outfile, debug_lengths); |
| 1341 |
} |
} |
| 1342 |
|
|
| 1343 |
if (do_showinfo) |
if (do_showinfo) |