This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Change error reporting mechanism slightly
authorKarl Williamson <khw@cpan.org>
Fri, 2 Mar 2018 11:47:45 +0000 (04:47 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 10 Oct 2018 16:42:40 +0000 (10:42 -0600)
commit51684e3cb0ae89f477fc488d9d7abc7f0ddbdfa2
tree04d182f96feff9090dad3919507a343f2552bf05
parentfc917fff56ad22b214333cf476db5f79abafd3a9
regcomp.c: Change error reporting mechanism slightly

There are (rare) constructs which cause regcomp.c to modify the user
input stream (stashing the original), and that is parsed instead before
returning to the continue with the original.  A problem arises if an
error occurs during the parsing of this modified version.  We want to
report the location of the error and context based on the original.
This led to 285b5ca0145796a915dec03e87e0176fd4681041 (fixing #126261).

This new commit simplifies the mechanism so that it is easier to
understand.
regcomp.c