This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Convert B to use ExtUtils::Constant::ProxySubs for its constants.
authorNicholas Clark <nick@ccl4.org>
Sat, 23 Oct 2010 18:26:53 +0000 (19:26 +0100)
committerNicholas Clark <nick@ccl4.org>
Sat, 23 Oct 2010 18:26:53 +0000 (19:26 +0100)
commitb1826b71659a2c08e5ace047d74b3724d6311bd8
tree63b54c25b105b08a09bc245bd7d308bffc9d2d3f
parent1c8d11ca3d0ce8bc11562f159b94c2c7e62dea6c
Convert B to use ExtUtils::Constant::ProxySubs for its constants.

Previously it was using a Perl script to generate C code with pairs of
 newCONSTSUB(stash,"Foo_BAR",newSViv(Foo_BAR));
 av_push(export_ok,newSVpvn("Foo_BAR",7));
for each constant it exported from C to Perl.

Now it uses a loop to process a table. Object code is size reduced by about 42K
on this system (almost 20%)
MANIFEST
ext/B/B.xs
ext/B/Makefile.PL
ext/B/defsubs_h.PL [deleted file]