This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Provide vtohl, vtohs, htovl and htovs no-op macros on little endian systems.
authorNicholas Clark <nick@ccl4.org>
Sat, 4 May 2013 19:30:27 +0000 (21:30 +0200)
committerNicholas Clark <nick@ccl4.org>
Mon, 20 May 2013 19:19:42 +0000 (21:19 +0200)
commit260c6fee6deba90b42b0734fbdea2fea1d69c9bc
tree73c3ec33822c5afeeac227af7bfd825740250b76
parent5ae724797a32a9a98d51759460d87f419fdd5a45
Provide vtohl, vtohs, htovl and htovs no-op macros on little endian systems.

This means that there are always macros or functions for vtohl, vtohs,
htovl and htovs available, so eliminate HAS_VTOHL etc, and unconditionally
compile the code that it was protecting. grep.cpan.me shows that no code on
CPAN uses any of these macros.

(Technically the 4 are not quite no-ops, as they truncate their values to
32 or 16 bits, to be consistent with the implementations for platforms which
need re-ordering.)
perl.h
pp_pack.c
util.c