This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
move Storable CAN_FLOCK computation into XS
authorGraham Knop <haarg@haarg.org>
Sat, 20 Apr 2019 10:53:06 +0000 (12:53 +0200)
committerTony Cook <tony@develop-help.com>
Thu, 8 Aug 2019 01:26:34 +0000 (11:26 +1000)
commit95173f94fe0c1b2b943af60e1f6c6e4c47b8a975
tree83c2c4905e9c10006d73c312d6a16b9de29756d7
parent2473bad063d0c1124df00d40e840a2fb91bb8fc4
move Storable CAN_FLOCK computation into XS

At build time, Storable would check if it could use flock based on some
Config values, and generate the final Storable.pm file using tha value.
This was done to avoid needing to load Config at runtime.  This adds
complexity to the build process.

A simpler option is to build the constant in the XS code.  This means
the build process can be entirely standard for XS.

Some slight adjustments to the code are needed to load the XS module at
BEGIN time, so that the contant is available in the rest of the file.
MANIFEST
Porting/corelist.pl
dist/Storable/.gitignore [deleted file]
dist/Storable/MANIFEST
dist/Storable/Makefile.PL
dist/Storable/Storable.pm [moved from dist/Storable/__Storable__.pm with 99% similarity]
dist/Storable/Storable.pm.PL [deleted file]
dist/Storable/Storable.xs