Displaying 1 result from an estimated 1 matches for "errorptr".
Did you mean:
error_ptr
2015 Nov 28
0
[patch] Use JIT for PCRE pattern matching
...n/grep.c (working copy)
@@ -52,6 +52,10 @@
# include <config.h>
#endif
+/* Compatibility with PCRE < 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...