Lines Matching refs:outfile
289 #define PCRE_PRINTINT8(re, outfile, debug_lengths) \ argument
290 pcre_printint(re, outfile, debug_lengths)
383 #define PCRE_PRINTINT16(re, outfile, debug_lengths) \ argument
384 pcre16_printint(re, outfile, debug_lengths)
475 #define PCRE_PRINTINT32(re, outfile, debug_lengths) \ argument
476 pcre32_printint(re, outfile, debug_lengths)
703 #define PCRE_PRINTINT(re, outfile, debug_lengths) \ argument
705 PCRE_PRINTINT32(re, outfile, debug_lengths); \
707 PCRE_PRINTINT16(re, outfile, debug_lengths); \
709 PCRE_PRINTINT8(re, outfile, debug_lengths)
898 #define PCRE_PRINTINT(re, outfile, debug_lengths) \ argument
900 G(PCRE_PRINTINT,BITONE)(re, outfile, debug_lengths); \
902 G(PCRE_PRINTINT,BITTWO)(re, outfile, debug_lengths)
1033 static FILE *outfile; variable
2164 fprintf(outfile, "no parentheses with name \""); in read_capture_name8()
2165 PCHARSV(*pp, 0, -1, outfile); in read_capture_name8()
2166 fprintf(outfile, "\"\n"); in read_capture_name8()
2192 fprintf(outfile, "no parentheses with name \""); in read_capture_name16()
2193 PCHARSV(*pp, 0, -1, outfile); in read_capture_name16()
2194 fprintf(outfile, "\"\n"); in read_capture_name16()
2219 fprintf(outfile, "no parentheses with name \""); in read_capture_name32()
2220 PCHARSV(*pp, 0, -1, outfile); in read_capture_name32()
2221 fprintf(outfile, "\"\n"); in read_capture_name32()
2252 FILE *f = (first_callout | callout_extra)? outfile : NULL; in callout()
2296 fprintf(outfile, "%+3d ", cb->pattern_position); in callout()
2297 if (cb->pattern_position > 99) fprintf(outfile, "\n "); in callout()
2301 if (callout_extra) fprintf(outfile, " "); in callout()
2302 else fprintf(outfile, "%3d ", cb->callout_number); in callout()
2305 for (i = 0; i < pre_start; i++) fprintf(outfile, " "); in callout()
2306 fprintf(outfile, "^"); in callout()
2310 for (i = 0; i < post_start - 1; i++) fprintf(outfile, " "); in callout()
2311 fprintf(outfile, "^"); in callout()
2315 fprintf(outfile, " "); in callout()
2317 fprintf(outfile, "%.*s", (cb->next_item_length == 0)? 1 : cb->next_item_length, in callout()
2320 fprintf(outfile, "\n"); in callout()
2326 fprintf(outfile, "Latest Mark: <unset>\n"); in callout()
2329 fprintf(outfile, "Latest Mark: "); in callout()
2330 PCHARSV(cb->mark, 0, -1, outfile); in callout()
2331 putc('\n', outfile); in callout()
2341 fprintf(outfile, "Callout data = %d\n", callout_data); in callout()
2363 fprintf(outfile, "malloc %3d %p\n", (int)size, block); in new_malloc()
2370 fprintf(outfile, "free %p\n", block); in new_free()
2380 fprintf(outfile, "stack_malloc %3d %p\n", (int)size, block); in stack_malloc()
2387 fprintf(outfile, "stack_free %p\n", block); in stack_free()
2435 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc, in new_info()
2438 fprintf(outfile, "Running in %d-bit mode but pattern was compiled in " in new_info()
2822 fprintf(outfile, "Minimum %s limit = %d\n", msg, mid); in check_match_limit()
3054 outfile = stdout; in main()
3412 outfile = fopen(argv[op+1], OUTPUT_MODE); in main()
3413 if (outfile == NULL) in main()
3446 if (!quiet) fprintf(outfile, "PCRE version %s\n\n", version); in main()
3490 if (infile != stdin) fprintf(outfile, "%s", (char *)buffer); in main()
3491 fflush(outfile); in main()
3544 fprintf(outfile, "Failed to open %s: %s\n", p, strerror(errno)); in main()
3573 fprintf(outfile, "Data in %s is not a compiled PCRE regex\n", p); in main()
3581 fprintf(outfile, "Compiled pattern%s loaded from %s\n", in main()
3599 fprintf(outfile, "Failed to read data from %s\n", p); in main()
3608 fprintf(outfile, "Study data loaded from %s\n", p); in main()
3611 else fprintf(outfile, "No study data\n"); in main()
3626 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc, in main()
3629 fprintf(outfile, "Running in %d-bit mode but pattern was compiled in " in main()
3658 fprintf(outfile, "** Delimiter must not be alphanumeric or \\\n"); in main()
3676 fprintf(outfile, "** Unexpected EOF\n"); in main()
3680 if (infile != stdin) fprintf(outfile, "%s", (char *)pp); in main()
3717 int x = check_mc_option(pp+1, outfile, FALSE, "modifier"); in main()
3724 int y = check_mc_option(ppp+1, outfile, FALSE, "modifier"); in main()
3797 fprintf(outfile, "** Missing 0 or 1 after /Q\n"); in main()
3861 fprintf(outfile, "** Missing table number after /T\n"); in main()
3865 fprintf(outfile, "** Bad table number \"%c\" after /T\n", pp[-1]); in main()
3878 fprintf(outfile, "** Failed to set locale \"%s\"\n", pp); in main()
3895 int x = check_mc_option(pp, outfile, FALSE, "modifier"); in main()
3908 fprintf(outfile, "** Unknown modifier '%c'\n", pp[-1]); in main()
3939 fprintf(outfile, "Failed: POSIX code %d: %s\n", rc, buffer); in main()
3958 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be " in main()
3963 fprintf(outfile, "**Failed: character value greater than 0x10ffff " in main()
3968 fprintf(outfile, "**Failed: character value greater than 0xffff " in main()
3985 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be " in main()
3990 fprintf(outfile, "**Failed: character value greater than 0x10ffff " in main()
3995 fprintf(outfile, "**Failed: character value is ill-formed UTF-32\n"); in main()
4018 fprintf(outfile, "Compile time %.4f milliseconds\n", in main()
4030 fprintf(outfile, "Failed: %s at offset %d\n", error, erroroffset); in main()
4045 fprintf(outfile, "\n"); in main()
4085 fprintf(outfile, "Memory allocation (code space): %d\n", in main()
4110 fprintf(outfile, " Study time %.4f milliseconds\n", in main()
4116 fprintf(outfile, "Failed to study: %s\n", error); in main()
4125 fprintf(outfile, "Memory allocation (JIT code): %d\n", (int)jitsize); in main()
4149 fprintf(outfile, "------------------------------------------------------------------\n"); in main()
4150 PCRE_PRINTINT(re, outfile, debug_lengths); in main()
4182 fprintf(outfile, "Capturing subpattern count = %d\n", count); in main()
4185 fprintf(outfile, "Max back reference = %d\n", backrefmax); in main()
4188 fprintf(outfile, "Max lookbehind = %d\n", maxlookbehind); in main()
4191 fprintf(outfile, "Match limit = %u\n", match_limit); in main()
4194 fprintf(outfile, "Recursion limit = %u\n", recursion_limit); in main()
4198 fprintf(outfile, "Named capturing subpatterns:\n"); in main()
4203 fprintf(outfile, " "); in main()
4204 PCHARSV(nametable, imm2_size, length, outfile); in main()
4205 while (length++ < nameentrysize - imm2_size) putc(' ', outfile); in main()
4208 fprintf(outfile, "%3d\n", (int)(((PCRE_SPTR32)nametable)[0])); in main()
4212 fprintf(outfile, "%3d\n", (int)(((PCRE_SPTR16)nametable)[0])); in main()
4216 fprintf(outfile, "%3d\n", ((int)nametable[0] << 8) | (int)nametable[1]); in main()
4222 if (!okpartial) fprintf(outfile, "Partial matching not supported\n"); in main()
4223 if (hascrorlf) fprintf(outfile, "Contains explicit CR or LF match\n"); in main()
4224 if (match_empty) fprintf(outfile, "May match empty string\n"); in main()
4229 if (get_options == 0) fprintf(outfile, "No options\n"); in main()
4230 else fprintf(outfile, "Options:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n", in main()
4251 if (jchanged) fprintf(outfile, "Duplicate name status changes\n"); in main()
4256 fprintf(outfile, "Forced newline sequence: CR\n"); in main()
4260 fprintf(outfile, "Forced newline sequence: LF\n"); in main()
4264 fprintf(outfile, "Forced newline sequence: CRLF\n"); in main()
4268 fprintf(outfile, "Forced newline sequence: ANYCRLF\n"); in main()
4272 fprintf(outfile, "Forced newline sequence: ANY\n"); in main()
4281 fprintf(outfile, "First char at start or follows newline\n"); in main()
4290 fprintf(outfile, "First char = \'%c\'%s\n", first_char, caseless); in main()
4293 fprintf(outfile, "First char = "); in main()
4294 pchar(first_char, outfile); in main()
4295 fprintf(outfile, "%s\n", caseless); in main()
4300 fprintf(outfile, "No first char\n"); in main()
4305 fprintf(outfile, "No need char\n"); in main()
4314 fprintf(outfile, "Need char = \'%c\'%s\n", need_char, caseless); in main()
4317 fprintf(outfile, "Need char = "); in main()
4318 pchar(need_char, outfile); in main()
4319 fprintf(outfile, "%s\n", caseless); in main()
4334 fprintf(outfile, "Study returned NULL\n"); in main()
4341 fprintf(outfile, "Subject length lower bound = %d\n", minlength); in main()
4346 fprintf(outfile, "No starting char list\n"); in main()
4351 fprintf(outfile, "Starting chars: "); in main()
4358 fprintf(outfile, "\n "); in main()
4363 fprintf(outfile, "%c ", i); in main()
4368 fprintf(outfile, "\\x%02x ", i); in main()
4373 fprintf(outfile, "\n"); in main()
4387 fprintf(outfile, "JIT study was successful\n"); in main()
4390 fprintf(outfile, "JIT study was not successful\n"); in main()
4392 fprintf(outfile, "JIT support is not available in this version of PCRE\n"); in main()
4408 fprintf(outfile, "Unable to open %s: %s\n", to_file, strerror(errno)); in main()
4427 fprintf(outfile, "Write error on %s: %s\n", to_file, strerror(errno)); in main()
4431 fprintf(outfile, "Compiled pattern written to %s\n", to_file); in main()
4440 fprintf(outfile, "Write error on %s: %s\n", to_file, in main()
4443 else fprintf(outfile, "Study data written to %s\n", to_file); in main()
4530 fprintf(outfile, "\n"); in main()
4536 if (infile != stdin) fprintf(outfile, "%s", (char *)buffer); in main()
4561 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be used as input in UTF mode\n"); in main()
4645 fprintf(outfile, "** Too many octal digits in \\o{...} item; " in main()
4650 else fprintf(outfile, "** Missing } after \\o{ (assumed)\n"); in main()
4668 fprintf(outfile, "** Too many hex digits in \\x{...} item; " in main()
4896 int x = check_mc_option(p, outfile, TRUE, "escape sequence"); in main()
4917 fprintf(outfile, "** Character \\x{%x} is greater than 0x7fffffff " in main()
4928 fprintf(outfile, "** Character \\x{%x} is greater than 255 " in main()
4930 fprintf(outfile, "** Truncation will probably give the wrong " in main()
4945 fprintf(outfile, "** Failed: character \\x{%x} is greater than " in main()
4963 fprintf(outfile, "** Character \\x{%x} is greater than 0xffff " in main()
4965 fprintf(outfile, "** Truncation will probably give the wrong " in main()
5061 fprintf(outfile, "No match: POSIX code %d: %s\n", rc, buffer); in main()
5065 fprintf(outfile, "Matched with REG_NOSUB\n"); in main()
5074 fprintf(outfile, "%2d: ", (int)i); in main()
5076 pmatch[i].rm_eo - pmatch[i].rm_so, outfile); in main()
5077 fprintf(outfile, "\n"); in main()
5080 fprintf(outfile, "%2d+ ", (int)i); in main()
5082 outfile); in main()
5083 fprintf(outfile, "\n"); in main()
5118 fprintf(outfile, "Timing DFA restarts is not supported\n"); in main()
5139 fprintf(outfile, "Execute time %.4f milliseconds\n", in main()
5199 fprintf(outfile, "Matched, but offsets vector is too small to show all matches\n"); in main()
5211 fprintf(outfile, "Matched, but too many substrings\n"); in main()
5234 fprintf(outfile, in main()
5240 fprintf(outfile, "** /%c loop abandoned\n", do_g? 'g' : 'G'); in main()
5264 fprintf(outfile, "ERROR: bad negative value %d for offset %d\n", in main()
5267 fprintf(outfile, "ERROR: bad negative value %d for offset %d\n", in main()
5269 fprintf(outfile, "%2d: <unset>\n", i/2); in main()
5280 fprintf(outfile, "Start of matched string is beyond its end - " in main()
5284 fprintf(outfile, "%2d: ", i/2); in main()
5285 PCHARSV(bptr, start, end - start, outfile); in main()
5286 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)"); in main()
5287 fprintf(outfile, "\n"); in main()
5294 fprintf(outfile, "%2d+ ", i/2); in main()
5296 outfile); in main()
5297 fprintf(outfile, "\n"); in main()
5304 fprintf(outfile, "MK: "); in main()
5305 PCHARSV(markptr, 0, -1, outfile); in main()
5306 fprintf(outfile, "\n"); in main()
5318 fprintf(outfile, "copy substring %d failed %d\n", i, rc); in main()
5321 fprintf(outfile, "%2dC ", i); in main()
5322 PCHARSV(copybuffer, 0, rc, outfile); in main()
5323 fprintf(outfile, " (%d)\n", rc); in main()
5358 fprintf(outfile, "copy substring "); in main()
5359 PCHARSV(cnptr, 0, -1, outfile); in main()
5360 fprintf(outfile, " failed %d\n", rc); in main()
5364 fprintf(outfile, " C "); in main()
5365 PCHARSV(copybuffer, 0, rc, outfile); in main()
5366 fprintf(outfile, " (%d) ", rc); in main()
5367 PCHARSV(cnptr, 0, -1, outfile); in main()
5368 putc('\n', outfile); in main()
5382 fprintf(outfile, "get substring %d failed %d\n", i, rc); in main()
5385 fprintf(outfile, "%2dG ", i); in main()
5386 PCHARSV(substring, 0, rc, outfile); in main()
5387 fprintf(outfile, " (%d)\n", rc); in main()
5422 fprintf(outfile, "get substring "); in main()
5423 PCHARSV(gnptr, 0, -1, outfile); in main()
5424 fprintf(outfile, " failed %d\n", rc); in main()
5428 fprintf(outfile, " G "); in main()
5429 PCHARSV(substring, 0, rc, outfile); in main()
5430 fprintf(outfile, " (%d) ", rc); in main()
5431 PCHARSV(gnptr, 0, -1, outfile); in main()
5433 putc('\n', outfile); in main()
5445 fprintf(outfile, "get substring list failed %d\n", rc); in main()
5450 fprintf(outfile, "%2dL ", i); in main()
5451 PCHARSV(stringlist[i], 0, -1, outfile); in main()
5452 putc('\n', outfile); in main()
5455 fprintf(outfile, "string list not terminated by NULL\n"); in main()
5466 fprintf(outfile, "Partial match"); in main()
5468 fprintf(outfile, " at offset %d", use_offsets[2]); in main()
5471 fprintf(outfile, ", mark="); in main()
5472 PCHARSV(markptr, 0, -1, outfile); in main()
5476 fprintf(outfile, ": "); in main()
5478 outfile); in main()
5480 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)"); in main()
5481 fprintf(outfile, "\n"); in main()
5561 fprintf(outfile, "No match"); in main()
5565 fprintf(outfile, "No match, mark = "); in main()
5566 PCHARSV(markptr, 0, -1, outfile); in main()
5568 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)"); in main()
5569 putc('\n', outfile); in main()
5575 fprintf(outfile, "Error %d (%s UTF-%d string)", count, in main()
5579 fprintf(outfile, " offset=%d reason=%d", use_offsets[0], in main()
5581 fprintf(outfile, "\n"); in main()
5585 fprintf(outfile, "Error %d (bad UTF-%d offset)\n", count, in main()
5592 fprintf(outfile, "Error %d (%s)\n", count, errtexts[-count]); in main()
5594 fprintf(outfile, "Error %d (Unexpected value)\n", count); in main()
5661 if (infile == stdin) fprintf(outfile, "\n"); in main()
5665 fprintf(outfile, "--------------------------------------\n"); in main()
5668 fprintf(outfile, "Total compile time %.4f milliseconds\n", in main()
5671 fprintf(outfile, "Total study time %.4f milliseconds\n", in main()
5675 fprintf(outfile, "Total execute time %.4f milliseconds\n", in main()
5683 if (outfile != NULL && outfile != stdout) fclose(outfile); in main()