This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h: Fix so x2p compiles
authorKarl Williamson <public@khwilliamson.com>
Sat, 25 Sep 2010 15:07:03 +0000 (09:07 -0600)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 25 Sep 2010 17:39:37 +0000 (10:39 -0700)
commit9fb1bf9d6077e18c69220b2091fc278b2e87b3fe
treef0e064901fb18239d80d78caa79c2eaa860cb364
parent8929b9994b4edc4f2f47e78e018efe56ac03cf6c
handy.h: Fix so x2p compiles

The recent series of commits on handy.h causes x2p to not compile.
These commits had some differences from what I submitted, in that they
moved the new table to a new header file instead of the submitted
perl.h.   Unfortunately, this bypasses code in perl.h that figures
out about duplicate definitions, and externs, and so fails on programs
that include handy.h but not perl.h.

This patch changes things so that the table lookup is not used unless
perl.h is included.  This is essentially my original patch, but adding
an #include of the new header file.
handy.h