This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add d_bitfield.U to see if non-int struct bitfields
authorKarl Williamson <khw@cpan.org>
Sun, 21 Jun 2020 18:48:51 +0000 (12:48 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 21 Aug 2020 20:34:31 +0000 (14:34 -0600)
commit14e3f1cf9ab670a20bace0a26f16b3ff4b14c26b
treec8a19da2b8b3b8c6409590de6b383526cd13cfc8
parentccce877effd51eda819fd00c7e8d9b36d7d337ed
Add d_bitfield.U to see if non-int struct bitfields

The C standard says only int and unsigned int bitfields in structs need
to be supported.  Many compilers also support other-sized ones, such as
short, but not all.  This adds a probe to detect this.
U/perl/d_bitfield.U [new file with mode: 0644]