search for: re_p

Displaying 2 results from an estimated 2 matches for "re_p".

Did you mean: resp
2015 Nov 28
0
[patch] Use JIT for PCRE pattern matching
...lt; 8.20 */ +#ifndef PCRE_STUDY_JIT_COMPILE +# define PCRE_STUDY_JIT_COMPILE 0 +#endif /* interval at which to check interrupts */ #define NINTERRUPT 1000000 @@ -405,7 +409,7 @@ errorptr, split+erroffset); error(_("invalid split pattern '%s'"), split); } - re_pe = pcre_study(re_pcre, 0, &errorptr); + re_pe = pcre_study(re_pcre, PCRE_STUDY_JIT_COMPILE, &errorptr); if (errorptr) warning(_("PCRE pattern study error\n\t'%s'\n"), errorptr); @@ -482,7 +486,11 @@ } vmaxset(vmax2); } +#ifdef PCRE_CONFIG_JIT +...
2011 Sep 29
3
grep and PCRE fun
...) +++ main/grep.c (working copy) @@ -723,7 +723,7 @@ { SEXP pat, text, ind, ans; regex_t reg; - int i, j, n, nmatches = 0, ov, rc; + int i, j, n, nmatches = 0, ov[3], rc; int igcase_opt, value_opt, perl_opt, fixed_opt, useBytes, invert; const char *spat = NULL; pcre *re_pcre = NULL /* -Wall */; @@ -882,7 +882,7 @@ if (fixed_opt) LOGICAL(ind)[i] = fgrep_one(spat, s, useBytes, use_UTF8, NULL) >= 0; else if (perl_opt) { - if (pcre_exec(re_pcre, re_pe, s, strlen(s), 0, 0, &ov, 0) >= 0) + if (pcre_exec(re_pcre, re_pe, s, strlen(s), 0, 0, ov, 3)...