This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Allocate XPV* memory using sizeof() and the offset of the first real member.
authorNicholas Clark <nick@ccl4.org>
Fri, 17 Jul 2009 16:35:57 +0000 (17:35 +0100)
committerNicholas Clark <nick@ccl4.org>
Fri, 17 Jul 2009 16:39:46 +0000 (17:39 +0100)
commit69ba284b5e077075f1211a1053a11dae403648fd
tree6caf496524bc976f1b1b46d2741d1163237e09c1
parentb6f609162799aa49813b53c8242464db37fcee9b
Allocate XPV* memory using sizeof() and the offset of the first real member.

This avoids tripping over alignment differences between X* and x*_allocated,
because x*_allocated doesn't have a double in it.

Tidy up the documentation in comments. Eliminate relative_STRUCT_OFFSET() as
it is no longer used. Eliminate use of xpv_allocated, xpviv_allocated,
xpvav_allocated, xpvcv_allocated and xpvfm_allocated, but leave them in the
headers as they are publicly visible.
sv.c