This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add a few helpers to B for INVLIST
authorNicolas R <nicolas@atoomic.org>
Tue, 3 Nov 2020 22:28:04 +0000 (15:28 -0700)
committerTodd Rinaldo <toddr@cpan.org>
Tue, 10 Nov 2020 18:51:31 +0000 (12:51 -0600)
commit47e6c6d93f57c4fc8d67fee6635d33d3bf768674
treed100058ead915419d329ce0484ad553f2714a575
parentb52b6c4029b51818442d64c6104d26e12e140f09
Add a few helpers to B for INVLIST

This commit provide some basic method
to access to internal fields from one
INVLIST: SVt_INVLIST

- prev_index
- is_offset
- array_len
- get_invlist_array

This allows B::C to be walk and save invlists.
MANIFEST
ext/B/B.pm
ext/B/B.xs
ext/B/t/invlist.t [new file with mode: 0644]
ext/B/typemap
perl.h
sv.h