This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use fnc to force out malformed warnings
authorKarl Williamson <khw@cpan.org>
Fri, 9 Dec 2016 15:45:18 +0000 (08:45 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 23 Dec 2016 20:21:31 +0000 (13:21 -0700)
commit75219bacf5aacd315b96083de24e82cd8238e99a
treeeb54b94b3883c3515439fdc29d98eb70d3e6257f
parent9cbfb8abb5bb7ce49134acc57b93eb9ae475e339
Use fnc to force out malformed warnings

The previous commit added a function to do this task.  This current
commit changes the several places in the core that have here-to-fore
done this in an ad-hoc (and not as reliable) manner to use the new
function.

A couple of messages in toke.c are left in so as to avoid changing
diagnostics unnecessarily.  If those messages had been created in the
project after the enhanced malformation warnings were created, they
would have been phrased differently.

The reason some of the methods weren't so reliable, is they relied on
fatalizing the warnng message.  However if warnings are turned off, it
never gets to the point of outputting, hence doesn't necessarily die.
regexec.c
t/op/lex.t
t/uni/parser.t
toke.c