diff options
author | Carlo Marcelo Arenas Belón <carenas@gmail.com> | 2021-11-12 16:45:04 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-11-14 12:13:28 -0800 |
commit | e0d39a9133e1507345d73ac5aff85f037f39aa54 (patch) | |
tree | 6180f608c8e7aeb689e8fba01da7d5848b0501a5 /Makefile.am | |
parent | b07c82ccdb9fcb97d99a5871134b2227e7f08915 (diff) | |
download | grep-e0d39a9133e1507345d73ac5aff85f037f39aa54.tar.gz |
grep: migrate to pcre2
Mostly a bug by bug translation of the original code to the PCRE2 API.
Code still could do with some optimizations but should be good as a
starting point.
The API changes the sign of some types and therefore some ugly casts
were needed, some of the changes are just to make sure all variables
fit into the newer types better.
Includes backward compatibility and could be made to build all the way
to 10.00, but assumes a recent enough version and has been tested with
10.23 (from CentOS 7, the oldest).
Performance seems equivalent, and it also seems functionally complete.
* m4/pcre.m4 (gl_FUNC_PCRE): Check for PCRE2, not the original PCRE.
* src/pcresearch.c (struct pcre_comp, jit_exec)
(Pcompile, Pexecute):
Use PCRE2, not the original PCRE.
* tests/filename-lineno.pl: Adjust to match PCRE2 diagnostics.
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions