This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make a few parse fcns accessible to B::Hooks::Parser
authorKarl Williamson <khw@cpan.org>
Wed, 27 Mar 2019 03:54:03 +0000 (21:54 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 13 Apr 2019 22:20:35 +0000 (16:20 -0600)
commitaabfeadc64376a5e473fe2a3fed20fd0d311dca5
treeab412da71f8f6d2f8938e5a3d13d8f685a44af39
parent2ec4590ec8255732ec2d163daabd237cdaf886f4
Make a few parse fcns accessible to B::Hooks::Parser

This module had made copies of three functions from toke.c many releases
ago, and they stagnated.  Most outside code has no business calling
them, but the least worst choice I believe is to make them accessible,
but hide that fact.

This commit makes them accessible to modules that have defined PERL_EXT.
It does not document their API's, and marks them as subject to change,
so they aren't even listed as available in the docs.  In other words,
you'd have to really go digging to find out you could use them.

And the API of two of the three had changed since the code was
originally stolen.  So that "subject to change" actually has happened.
We should feel free to change the API as needed, and B::Hooks::Parser
will have to be updated.

Thanks to Tony Cook for advising me on this area unfamiliar to me.
embed.fnc
embed.h
proto.h
toke.c