| 1186 |
#endif |
#endif |
| 1187 |
printf(" -q quiet: do not output PCRE version number at start\n"); |
printf(" -q quiet: do not output PCRE version number at start\n"); |
| 1188 |
printf(" -S <n> set stack size to <n> megabytes\n"); |
printf(" -S <n> set stack size to <n> megabytes\n"); |
| 1189 |
printf(" -s output store (memory) used information\n" |
printf(" -s force each pattern to be studied\n" |
| 1190 |
" -t time compilation and execution\n"); |
" -t time compilation and execution\n"); |
| 1191 |
printf(" -t <n> time compilation and execution, repeating <n> times\n"); |
printf(" -t <n> time compilation and execution, repeating <n> times\n"); |
| 1192 |
printf(" -tm time execution (matching) only\n"); |
printf(" -tm time execution (matching) only\n"); |
| 1214 |
int timeitm = 0; |
int timeitm = 0; |
| 1215 |
int showinfo = 0; |
int showinfo = 0; |
| 1216 |
int showstore = 0; |
int showstore = 0; |
| 1217 |
|
int force_study = 0; |
| 1218 |
int quiet = 0; |
int quiet = 0; |
| 1219 |
int size_offsets = 45; |
int size_offsets = 45; |
| 1220 |
int size_offsets_max; |
int size_offsets_max; |
| 1263 |
{ |
{ |
| 1264 |
unsigned char *endptr; |
unsigned char *endptr; |
| 1265 |
|
|
| 1266 |
if (strcmp(argv[op], "-s") == 0 || strcmp(argv[op], "-m") == 0) |
if (strcmp(argv[op], "-m") == 0) showstore = 1; |
| 1267 |
showstore = 1; |
else if (strcmp(argv[op], "-s") == 0) force_study = 1; |
| 1268 |
else if (strcmp(argv[op], "-q") == 0) quiet = 1; |
else if (strcmp(argv[op], "-q") == 0) quiet = 1; |
| 1269 |
else if (strcmp(argv[op], "-b") == 0) debug = 1; |
else if (strcmp(argv[op], "-b") == 0) debug = 1; |
| 1270 |
else if (strcmp(argv[op], "-i") == 0) showinfo = 1; |
else if (strcmp(argv[op], "-i") == 0) showinfo = 1; |
| 1808 |
true_size = ((real_pcre *)re)->size; |
true_size = ((real_pcre *)re)->size; |
| 1809 |
regex_gotten_store = gotten_store; |
regex_gotten_store = gotten_store; |
| 1810 |
|
|
| 1811 |
/* If /S was present, study the regexp to generate additional info to |
/* If -s or /S was present, study the regexp to generate additional info to |
| 1812 |
help with the matching. */ |
help with the matching. */ |
| 1813 |
|
|
| 1814 |
if (do_study) |
if (do_study || force_study) |
| 1815 |
{ |
{ |
| 1816 |
if (timeit > 0) |
if (timeit > 0) |
| 1817 |
{ |
{ |
| 2051 |
so messes up the test suite. (And with the /F option, it might be |
so messes up the test suite. (And with the /F option, it might be |
| 2052 |
flipped.) */ |
flipped.) */ |
| 2053 |
|
|
| 2054 |
if (do_study) |
if (do_study || force_study) |
| 2055 |
{ |
{ |
| 2056 |
if (extra == NULL) |
if (extra == NULL) |
| 2057 |
fprintf(outfile, "Study returned NULL\n"); |
fprintf(outfile, "Study returned NULL\n"); |