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()
2299 fprintf(outfile, "%+3d ", cb->pattern_position); in callout()
2300 if (cb->pattern_position > 99) fprintf(outfile, "\n "); in callout()
2304 if (callout_extra) fprintf(outfile, " "); in callout()
2305 else fprintf(outfile, "%3d ", cb->callout_number); in callout()
2308 for (i = 0; i < pre_start; i++) fprintf(outfile, " "); in callout()
2309 fprintf(outfile, "^"); in callout()
2313 for (i = 0; i < post_start - 1; i++) fprintf(outfile, " "); in callout()
2314 fprintf(outfile, "^"); in callout()
2318 fprintf(outfile, " "); in callout()
2320 fprintf(outfile, "%.*s", (cb->next_item_length == 0)? 1 : cb->next_item_length, in callout()
2323 fprintf(outfile, "\n"); in callout()
2329 fprintf(outfile, "Latest Mark: <unset>\n"); in callout()
2332 fprintf(outfile, "Latest Mark: "); in callout()
2333 PCHARSV(cb->mark, 0, -1, outfile); in callout()
2334 putc('\n', outfile); in callout()
2344 fprintf(outfile, "Callout data = %d\n", callout_data); in callout()
2366 fprintf(outfile, "malloc %3d %p\n", (int)size, block); in new_malloc()
2373 fprintf(outfile, "free %p\n", block); in new_free()
2383 fprintf(outfile, "stack_malloc %3d %p\n", (int)size, block); in stack_malloc()
2390 fprintf(outfile, "stack_free %p\n", block); in stack_free()
2438 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc, in new_info()
2441 fprintf(outfile, "Running in %d-bit mode but pattern was compiled in " in new_info()
2825 fprintf(outfile, "Minimum %s limit = %d\n", msg, mid); in check_match_limit()
3057 outfile = stdout; in main()
3415 outfile = fopen(argv[op+1], OUTPUT_MODE); in main()
3416 if (outfile == NULL) in main()
3449 if (!quiet) fprintf(outfile, "PCRE version %s\n\n", version); in main()
3493 if (infile != stdin) fprintf(outfile, "%s", (char *)buffer); in main()
3494 fflush(outfile); in main()
3547 fprintf(outfile, "Failed to open %s: %s\n", p, strerror(errno)); in main()
3576 fprintf(outfile, "Data in %s is not a compiled PCRE regex\n", p); in main()
3584 fprintf(outfile, "Compiled pattern%s loaded from %s\n", in main()
3602 fprintf(outfile, "Failed to read data from %s\n", p); in main()
3611 fprintf(outfile, "Study data loaded from %s\n", p); in main()
3614 else fprintf(outfile, "No study data\n"); in main()
3629 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc, in main()
3632 fprintf(outfile, "Running in %d-bit mode but pattern was compiled in " in main()
3661 fprintf(outfile, "** Delimiter must not be alphanumeric or \\\n"); in main()
3679 fprintf(outfile, "** Unexpected EOF\n"); in main()
3683 if (infile != stdin) fprintf(outfile, "%s", (char *)pp); in main()
3720 int x = check_mc_option(pp+1, outfile, FALSE, "modifier"); in main()
3727 int y = check_mc_option(ppp+1, outfile, FALSE, "modifier"); in main()
3800 fprintf(outfile, "** Missing 0 or 1 after /Q\n"); in main()
3864 fprintf(outfile, "** Missing table number after /T\n"); in main()
3868 fprintf(outfile, "** Bad table number \"%c\" after /T\n", pp[-1]); in main()
3881 fprintf(outfile, "** Failed to set locale \"%s\"\n", pp); in main()
3898 int x = check_mc_option(pp, outfile, FALSE, "modifier"); in main()
3911 fprintf(outfile, "** Unknown modifier '%c'\n", pp[-1]); in main()
3942 fprintf(outfile, "Failed: POSIX code %d: %s\n", rc, buffer); in main()
3961 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be " in main()
3966 fprintf(outfile, "**Failed: character value greater than 0x10ffff " in main()
3971 fprintf(outfile, "**Failed: character value greater than 0xffff " in main()
3988 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be " in main()
3993 fprintf(outfile, "**Failed: character value greater than 0x10ffff " in main()
3998 fprintf(outfile, "**Failed: character value is ill-formed UTF-32\n"); in main()
4021 fprintf(outfile, "Compile time %.4f milliseconds\n", in main()
4033 fprintf(outfile, "Failed: %s at offset %d\n", error, erroroffset); in main()
4048 fprintf(outfile, "\n"); in main()
4088 fprintf(outfile, "Memory allocation (code space): %d\n", in main()
4113 fprintf(outfile, " Study time %.4f milliseconds\n", in main()
4119 fprintf(outfile, "Failed to study: %s\n", error); in main()
4128 fprintf(outfile, "Memory allocation (JIT code): %d\n", (int)jitsize); in main()
4152 fprintf(outfile, "------------------------------------------------------------------\n"); in main()
4153 PCRE_PRINTINT(re, outfile, debug_lengths); in main()
4185 fprintf(outfile, "Capturing subpattern count = %d\n", count); in main()
4188 fprintf(outfile, "Max back reference = %d\n", backrefmax); in main()
4191 fprintf(outfile, "Max lookbehind = %d\n", maxlookbehind); in main()
4194 fprintf(outfile, "Match limit = %u\n", match_limit); in main()
4197 fprintf(outfile, "Recursion limit = %u\n", recursion_limit); in main()
4201 fprintf(outfile, "Named capturing subpatterns:\n"); in main()
4206 fprintf(outfile, " "); in main()
4207 PCHARSV(nametable, imm2_size, length, outfile); in main()
4208 while (length++ < nameentrysize - imm2_size) putc(' ', outfile); in main()
4211 fprintf(outfile, "%3d\n", (int)(((PCRE_SPTR32)nametable)[0])); in main()
4215 fprintf(outfile, "%3d\n", (int)(((PCRE_SPTR16)nametable)[0])); in main()
4219 fprintf(outfile, "%3d\n", ((int)nametable[0] << 8) | (int)nametable[1]); in main()
4225 if (!okpartial) fprintf(outfile, "Partial matching not supported\n"); in main()
4226 if (hascrorlf) fprintf(outfile, "Contains explicit CR or LF match\n"); in main()
4227 if (match_empty) fprintf(outfile, "May match empty string\n"); in main()
4232 if (get_options == 0) fprintf(outfile, "No options\n"); in main()
4233 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()
4254 if (jchanged) fprintf(outfile, "Duplicate name status changes\n"); in main()
4259 fprintf(outfile, "Forced newline sequence: CR\n"); in main()
4263 fprintf(outfile, "Forced newline sequence: LF\n"); in main()
4267 fprintf(outfile, "Forced newline sequence: CRLF\n"); in main()
4271 fprintf(outfile, "Forced newline sequence: ANYCRLF\n"); in main()
4275 fprintf(outfile, "Forced newline sequence: ANY\n"); in main()
4284 fprintf(outfile, "First char at start or follows newline\n"); in main()
4293 fprintf(outfile, "First char = \'%c\'%s\n", first_char, caseless); in main()
4296 fprintf(outfile, "First char = "); in main()
4297 pchar(first_char, outfile); in main()
4298 fprintf(outfile, "%s\n", caseless); in main()
4303 fprintf(outfile, "No first char\n"); in main()
4308 fprintf(outfile, "No need char\n"); in main()
4317 fprintf(outfile, "Need char = \'%c\'%s\n", need_char, caseless); in main()
4320 fprintf(outfile, "Need char = "); in main()
4321 pchar(need_char, outfile); in main()
4322 fprintf(outfile, "%s\n", caseless); in main()
4337 fprintf(outfile, "Study returned NULL\n"); in main()
4344 fprintf(outfile, "Subject length lower bound = %d\n", minlength); in main()
4349 fprintf(outfile, "No starting char list\n"); in main()
4354 fprintf(outfile, "Starting chars: "); in main()
4361 fprintf(outfile, "\n "); in main()
4366 fprintf(outfile, "%c ", i); in main()
4371 fprintf(outfile, "\\x%02x ", i); in main()
4376 fprintf(outfile, "\n"); in main()
4390 fprintf(outfile, "JIT study was successful\n"); in main()
4393 fprintf(outfile, "JIT study was not successful\n"); in main()
4395 fprintf(outfile, "JIT support is not available in this version of PCRE\n"); in main()
4411 fprintf(outfile, "Unable to open %s: %s\n", to_file, strerror(errno)); in main()
4430 fprintf(outfile, "Write error on %s: %s\n", to_file, strerror(errno)); in main()
4434 fprintf(outfile, "Compiled pattern written to %s\n", to_file); in main()
4443 fprintf(outfile, "Write error on %s: %s\n", to_file, in main()
4446 else fprintf(outfile, "Study data written to %s\n", to_file); in main()
4533 fprintf(outfile, "\n"); in main()
4539 if (infile != stdin) fprintf(outfile, "%s", (char *)buffer); in main()
4564 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be used as input in UTF mode\n"); in main()
4648 fprintf(outfile, "** Too many octal digits in \\o{...} item; " in main()
4653 else fprintf(outfile, "** Missing } after \\o{ (assumed)\n"); in main()
4671 fprintf(outfile, "** Too many hex digits in \\x{...} item; " in main()
4899 int x = check_mc_option(p, outfile, TRUE, "escape sequence"); in main()
4920 fprintf(outfile, "** Character \\x{%x} is greater than 0x7fffffff " in main()
4931 fprintf(outfile, "** Character \\x{%x} is greater than 255 " in main()
4933 fprintf(outfile, "** Truncation will probably give the wrong " in main()
4948 fprintf(outfile, "** Failed: character \\x{%x} is greater than " in main()
4966 fprintf(outfile, "** Character \\x{%x} is greater than 0xffff " in main()
4968 fprintf(outfile, "** Truncation will probably give the wrong " in main()
5064 fprintf(outfile, "No match: POSIX code %d: %s\n", rc, buffer); in main()
5068 fprintf(outfile, "Matched with REG_NOSUB\n"); in main()
5077 fprintf(outfile, "%2d: ", (int)i); in main()
5079 pmatch[i].rm_eo - pmatch[i].rm_so, outfile); in main()
5080 fprintf(outfile, "\n"); in main()
5083 fprintf(outfile, "%2d+ ", (int)i); in main()
5085 outfile); in main()
5086 fprintf(outfile, "\n"); in main()
5121 fprintf(outfile, "Timing DFA restarts is not supported\n"); in main()
5142 fprintf(outfile, "Execute time %.4f milliseconds\n", in main()
5202 fprintf(outfile, "Matched, but offsets vector is too small to show all matches\n"); in main()
5214 fprintf(outfile, "Matched, but too many substrings\n"); in main()
5237 fprintf(outfile, in main()
5243 fprintf(outfile, "** /%c loop abandoned\n", do_g? 'g' : 'G'); in main()
5267 fprintf(outfile, "ERROR: bad negative value %d for offset %d\n", in main()
5270 fprintf(outfile, "ERROR: bad negative value %d for offset %d\n", in main()
5272 fprintf(outfile, "%2d: <unset>\n", i/2); in main()
5283 fprintf(outfile, "Start of matched string is beyond its end - " in main()
5287 fprintf(outfile, "%2d: ", i/2); in main()
5288 PCHARSV(bptr, start, end - start, outfile); in main()
5289 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)"); in main()
5290 fprintf(outfile, "\n"); in main()
5297 fprintf(outfile, "%2d+ ", i/2); in main()
5299 outfile); in main()
5300 fprintf(outfile, "\n"); in main()
5307 fprintf(outfile, "MK: "); in main()
5308 PCHARSV(markptr, 0, -1, outfile); in main()
5309 fprintf(outfile, "\n"); in main()
5321 fprintf(outfile, "copy substring %d failed %d\n", i, rc); in main()
5324 fprintf(outfile, "%2dC ", i); in main()
5325 PCHARSV(copybuffer, 0, rc, outfile); in main()
5326 fprintf(outfile, " (%d)\n", rc); in main()
5361 fprintf(outfile, "copy substring "); in main()
5362 PCHARSV(cnptr, 0, -1, outfile); in main()
5363 fprintf(outfile, " failed %d\n", rc); in main()
5367 fprintf(outfile, " C "); in main()
5368 PCHARSV(copybuffer, 0, rc, outfile); in main()
5369 fprintf(outfile, " (%d) ", rc); in main()
5370 PCHARSV(cnptr, 0, -1, outfile); in main()
5371 putc('\n', outfile); in main()
5385 fprintf(outfile, "get substring %d failed %d\n", i, rc); in main()
5388 fprintf(outfile, "%2dG ", i); in main()
5389 PCHARSV(substring, 0, rc, outfile); in main()
5390 fprintf(outfile, " (%d)\n", rc); in main()
5425 fprintf(outfile, "get substring "); in main()
5426 PCHARSV(gnptr, 0, -1, outfile); in main()
5427 fprintf(outfile, " failed %d\n", rc); in main()
5431 fprintf(outfile, " G "); in main()
5432 PCHARSV(substring, 0, rc, outfile); in main()
5433 fprintf(outfile, " (%d) ", rc); in main()
5434 PCHARSV(gnptr, 0, -1, outfile); in main()
5436 putc('\n', outfile); in main()
5448 fprintf(outfile, "get substring list failed %d\n", rc); in main()
5453 fprintf(outfile, "%2dL ", i); in main()
5454 PCHARSV(stringlist[i], 0, -1, outfile); in main()
5455 putc('\n', outfile); in main()
5458 fprintf(outfile, "string list not terminated by NULL\n"); in main()
5469 fprintf(outfile, "Partial match"); in main()
5471 fprintf(outfile, " at offset %d", use_offsets[2]); in main()
5474 fprintf(outfile, ", mark="); in main()
5475 PCHARSV(markptr, 0, -1, outfile); in main()
5479 fprintf(outfile, ": "); in main()
5481 outfile); in main()
5483 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)"); in main()
5484 fprintf(outfile, "\n"); in main()
5564 fprintf(outfile, "No match"); in main()
5568 fprintf(outfile, "No match, mark = "); in main()
5569 PCHARSV(markptr, 0, -1, outfile); in main()
5571 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)"); in main()
5572 putc('\n', outfile); in main()
5578 fprintf(outfile, "Error %d (%s UTF-%d string)", count, in main()
5582 fprintf(outfile, " offset=%d reason=%d", use_offsets[0], in main()
5584 fprintf(outfile, "\n"); in main()
5588 fprintf(outfile, "Error %d (bad UTF-%d offset)\n", count, in main()
5595 fprintf(outfile, "Error %d (%s)\n", count, errtexts[-count]); in main()
5597 fprintf(outfile, "Error %d (Unexpected value)\n", count); in main()
5611 fprintf(outfile, "Cannot do global matching without an ovector\n"); in main()
5694 if (infile == stdin) fprintf(outfile, "\n"); in main()
5698 fprintf(outfile, "--------------------------------------\n"); in main()
5701 fprintf(outfile, "Total compile time %.4f milliseconds\n", in main()
5704 fprintf(outfile, "Total study time %.4f milliseconds\n", in main()
5708 fprintf(outfile, "Total execute time %.4f milliseconds\n", in main()
5716 if (outfile != NULL && outfile != stdout) fclose(outfile); in main()