• Home
  • Raw
  • Download

Lines Matching refs:pat_patctl

899 static patctl pat_patctl;  variable
2746 return depth > pat_patctl.stackguard_test; in stack_guard()
3093 if (!utf && (pat_patctl.control & CTL_UTF8_INPUT) == 0) in to16()
3181 if (!utf && (pat_patctl.control & CTL_UTF8_INPUT) == 0) in to32()
4206 if (pat_patctl.jit != 0) in show_memory_info()
4322 if ((pat_patctl.control & (CTL_BINCODE|CTL_FULLBINCODE)) != 0) in show_pattern_info()
4325 PCRE2_PRINTINT((pat_patctl.control & CTL_FULLBINCODE) != 0); in show_pattern_info()
4328 if ((pat_patctl.control & CTL_INFO) != 0) in show_pattern_info()
4465 if ((pat_patctl.options & PCRE2_NEVER_UTF) == 0) in show_pattern_info()
4471 if ((pat_patctl.options & PCRE2_NEVER_UCP) == 0) in show_pattern_info()
4493 if ((pat_patctl.control2 & CTL2_BSR_SET) != 0 || in show_pattern_info()
4595 if (pat_patctl.jit != 0 && (pat_patctl.control & CTL_JITVERIFY) != 0) in show_pattern_info()
4613 if ((pat_patctl.control & CTL_CALLOUT_INFO) != 0) in show_pattern_info()
4809 memset(&pat_patctl, 0, sizeof(patctl)); /* Completely unset */ in process_command()
4810 if (!decode_modifiers(argptr, CTX_POPPAT, &pat_patctl, NULL)) in process_command()
4822 if (pat_patctl.jit != 0) in process_command()
4824 PCRE2_JIT_COMPILE(jitrc, compiled_code, pat_patctl.jit); in process_command()
4826 if ((pat_patctl.control & CTL_MEMORY) != 0) show_memory_info(); in process_command()
4827 if ((pat_patctl.control & CTL_FRAMESIZE) != 0) show_framesize(); in process_command()
4828 if ((pat_patctl.control & CTL_ANYINFO) != 0) in process_command()
4976 memcpy(&pat_patctl, &def_patctl, sizeof(patctl)); in process_pattern()
5010 if (!decode_modifiers(p, CTX_PAT, &pat_patctl, NULL)) return PR_SKIP; in process_pattern()
5011 utf = (pat_patctl.options & PCRE2_UTF) != 0; in process_pattern()
5016 if ((pat_patctl.control & CTL_UTF8_INPUT) != 0) in process_pattern()
5032 if (pat_patctl.convert_type != CONVERT_UNSET && in process_pattern()
5033 (pat_patctl.control & CTL_POSIX) != 0) in process_pattern()
5044 uint32_t c = pat_patctl.control & exclusive_pat_controls[k]; in process_pattern()
5056 if (pat_patctl.jit == 0 && in process_pattern()
5057 (pat_patctl.control & (CTL_JITVERIFY|CTL_JITFAST)) != 0) in process_pattern()
5058 pat_patctl.jit = 7; in process_pattern()
5065 if ((pat_patctl.control & CTL_HEXPAT) != 0) in process_pattern()
5129 else if ((pat_patctl.control & CTL_EXPAND) != 0) in process_pattern()
5207 if ((pat_patctl.control & CTL_INFO) != 0) in process_pattern()
5220 if (pat_patctl.locale[0] != 0) in process_pattern()
5222 if (pat_patctl.tables_id != 0) in process_pattern()
5227 if (setlocale(LC_CTYPE, (const char *)pat_patctl.locale) == NULL) in process_pattern()
5229 fprintf(outfile, "** Failed to set locale '%s'\n", pat_patctl.locale); in process_pattern()
5232 if (strcmp((const char *)pat_patctl.locale, (const char *)locale_name) != 0) in process_pattern()
5234 strcpy((char *)locale_name, (char *)pat_patctl.locale); in process_pattern()
5241 else switch (pat_patctl.tables_id) in process_pattern()
5255 if (pat_patctl.stackguard_test != 0) in process_pattern()
5264 if ((pat_patctl.control & CTL_POSIX) != 0) in process_pattern()
5281 if (pat_patctl.locale[0] != 0) prmsg(&msg, "locale"); in process_pattern()
5282 if (pat_patctl.replacement[0] != 0) prmsg(&msg, "replace"); in process_pattern()
5283 if (pat_patctl.tables_id != 0) prmsg(&msg, "tables"); in process_pattern()
5284 if (pat_patctl.stackguard_test != 0) prmsg(&msg, "stackguard"); in process_pattern()
5286 if (pat_patctl.jit != 0) prmsg(&msg, "JIT"); in process_pattern()
5288 if ((pat_patctl.options & ~POSIX_SUPPORTED_COMPILE_OPTIONS) != 0) in process_pattern()
5291 pat_patctl.options & ~POSIX_SUPPORTED_COMPILE_OPTIONS, msg, ""); in process_pattern()
5304 if ((pat_patctl.control & ~POSIX_SUPPORTED_COMPILE_CONTROLS) != 0 || in process_pattern()
5305 (pat_patctl.control2 & ~POSIX_SUPPORTED_COMPILE_CONTROLS2) != 0) in process_pattern()
5307 show_controls(pat_patctl.control & ~POSIX_SUPPORTED_COMPILE_CONTROLS, in process_pattern()
5308 pat_patctl.control2 & ~POSIX_SUPPORTED_COMPILE_CONTROLS2, msg); in process_pattern()
5323 if ((pat_patctl.control & CTL_POSIX_NOSUB) != 0) cflags |= REG_NOSUB; in process_pattern()
5324 if ((pat_patctl.options & PCRE2_UCP) != 0) cflags |= REG_UCP; in process_pattern()
5325 if ((pat_patctl.options & PCRE2_CASELESS) != 0) cflags |= REG_ICASE; in process_pattern()
5326 if ((pat_patctl.options & PCRE2_LITERAL) != 0) cflags |= REG_NOSPEC; in process_pattern()
5327 if ((pat_patctl.options & PCRE2_MULTILINE) != 0) cflags |= REG_NEWLINE; in process_pattern()
5328 if ((pat_patctl.options & PCRE2_DOTALL) != 0) cflags |= REG_DOTALL; in process_pattern()
5329 if ((pat_patctl.options & PCRE2_UNGREEDY) != 0) cflags |= REG_UNGREEDY; in process_pattern()
5331 if ((pat_patctl.control & (CTL_HEXPAT|CTL_USE_LENGTH)) != 0) in process_pattern()
5349 bsize = (pat_patctl.regerror_buffsize != 0)? in process_pattern()
5350 pat_patctl.regerror_buffsize : pbuffer8_size; in process_pattern()
5399 if ((pat_patctl.control & (CTL_PUSH|CTL_PUSHCOPY|CTL_PUSHTABLESCOPY)) != 0) in process_pattern()
5401 if (pat_patctl.replacement[0] != 0) in process_pattern()
5406 if ((pat_patctl.control & ~PUSH_SUPPORTED_COMPILE_CONTROLS) != 0 || in process_pattern()
5407 (pat_patctl.control2 & ~PUSH_SUPPORTED_COMPILE_CONTROLS2) != 0) in process_pattern()
5409 show_controls(pat_patctl.control & ~PUSH_SUPPORTED_COMPILE_CONTROLS, in process_pattern()
5410 pat_patctl.control2 & ~PUSH_SUPPORTED_COMPILE_CONTROLS2, in process_pattern()
5414 if ((pat_patctl.control & PUSH_COMPILE_ONLY_CONTROLS) != 0 || in process_pattern()
5415 (pat_patctl.control2 & PUSH_COMPILE_ONLY_CONTROLS2) != 0) in process_pattern()
5417 show_controls(pat_patctl.control & PUSH_COMPILE_ONLY_CONTROLS, in process_pattern()
5418 pat_patctl.control2 & PUSH_COMPILE_ONLY_CONTROLS2, in process_pattern()
5461 if (pat_patctl.convert_type != CONVERT_UNSET) in process_pattern()
5465 uint32_t convert_options = pat_patctl.convert_type; in process_pattern()
5469 if (pat_patctl.convert_length != 0) in process_pattern()
5471 converted_length = pat_patctl.convert_length; in process_pattern()
5482 if ((pat_patctl.options & PCRE2_NO_UTF_CHECK) != 0) in process_pattern()
5487 if (pat_patctl.convert_glob_escape != 0) in process_pattern()
5489 uint32_t escape = (pat_patctl.convert_glob_escape == '0')? 0 : in process_pattern()
5490 pat_patctl.convert_glob_escape; in process_pattern()
5495 pat_patctl.convert_glob_escape); in process_pattern()
5501 if (pat_patctl.convert_glob_separator != 0) in process_pattern()
5503 PCRE2_SET_GLOB_SEPARATOR(rc, con_context, pat_patctl.convert_glob_separator); in process_pattern()
5507 pat_patctl.convert_glob_separator); in process_pattern()
5536 if (pat_patctl.convert_length != 0) in process_pattern()
5552 if ((pat_patctl.control & (CTL_HEXPAT|CTL_USE_LENGTH)) == 0) in process_pattern()
5588 if ((pat_patctl.control2 & CTL2_NL_SET) == 0 && local_newline_default != 0) in process_pattern()
5596 use_pat_context = ((pat_patctl.control & CTL_NULLCONTEXT) != 0)? in process_pattern()
5602 if ((pat_patctl.options & PCRE2_LITERAL) != 0) use_forbid_utf = 0; in process_pattern()
5614 pat_patctl.options|use_forbid_utf, &errorcode, &erroroffset, in process_pattern()
5628 PCRE2_COMPILE(compiled_code, pbuffer, patlen, pat_patctl.options|use_forbid_utf, in process_pattern()
5635 if (TEST(compiled_code, !=, NULL) && pat_patctl.jit != 0) in process_pattern()
5646 pat_patctl.options|use_forbid_utf, &errorcode, &erroroffset, in process_pattern()
5649 PCRE2_JIT_COMPILE(jitrc,compiled_code, pat_patctl.jit); in process_pattern()
5659 PCRE2_JIT_COMPILE(jitrc, compiled_code, pat_patctl.jit); in process_pattern()
5723 if ((pat_patctl.control2 & CTL2_NL_SET) != 0) in process_pattern()
5730 if ((pat_patctl.control & CTL_MEMORY) != 0) show_memory_info(); in process_pattern()
5731 if ((pat_patctl.control & CTL_FRAMESIZE) != 0) show_framesize(); in process_pattern()
5732 if ((pat_patctl.control & CTL_ANYINFO) != 0) in process_pattern()
5741 if ((pat_patctl.control & CTL_PUSH) != 0) in process_pattern()
5756 if ((pat_patctl.control & (CTL_PUSHCOPY|CTL_PUSHTABLESCOPY)) != 0) in process_pattern()
5763 if ((pat_patctl.control & CTL_PUSHCOPY) != 0) in process_pattern()
5835 else if ((pat_patctl.control & CTL_JITFAST) != 0) in check_match_limit()
6357 subject_literal = (pat_patctl.control2 & CTL2_SUBJECT_LITERAL) != 0; in process_data()
6367 dat_datctl.control |= (pat_patctl.control & CTL_ALLPD); in process_data()
6368 dat_datctl.control2 |= (pat_patctl.control2 & CTL2_ALLPD); in process_data()
6369 strcpy((char *)dat_datctl.replacement, (char *)pat_patctl.replacement); in process_data()
6370 if (dat_datctl.jitstack == 0) dat_datctl.jitstack = pat_patctl.jitstack; in process_data()
6375 utf = ((((pat_patctl.control & CTL_POSIX) != 0)? in process_data()
6514 if ((utf || (pat_patctl.control & CTL_UTF8_INPUT) != 0) && in process_data()
6725 if (pat_patctl.replacement[0] != 0 && in process_data()
6743 c = code_unit_size * (((pat_patctl.control & CTL_POSIX) + in process_data()
6755 if ((pat_patctl.control & CTL_POSIX) != 0) in process_data()
6818 else if ((pat_patctl.control & CTL_POSIX_NOSUB) != 0) in process_data()
6895 (pat_patctl.control & dat_datctl.control & CTL_NULLCONTEXT) != 0) in process_data()
6925 if ((pat_patctl.control & CTL_JITVERIFY) != 0 && jit_stack == NULL) in process_data()
7140 jit_was_used = (pat_patctl.control & CTL_JITFAST) != 0; in process_data()
7167 else if ((pat_patctl.control & CTL_JITFAST) != 0) in process_data()
7263 if ((pat_patctl.control & CTL_JITFAST) != 0) in process_data()
7409 if ((pat_patctl.control & CTL_JITVERIFY) != 0 && jit_was_used) in process_data()
7427 if ((pat_patctl.control & CTL_JITVERIFY) != 0 && jit_was_used) in process_data()
7441 if ((pat_patctl.control & CTL_JITVERIFY) != 0 && jit_was_used) in process_data()
7508 if ((pat_patctl.control & CTL_JITVERIFY) != 0 && jit_was_used) in process_data()
7590 if ((pat_patctl.control & CTL_JITVERIFY) != 0 && jit_was_used) in process_data()