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)
committerDavid Mitchell <davem@iabyn.com>
Sat, 18 Jul 2009 13:35:07 +0000 (14:35 +0100)
commit75a8620d3d7c90dc7eba191fc997434a8201b99e
tree9d807570dbaeabe44a213866e2b138145b05b353
parent9d582596c2029448bb5f7e0f36f97fd0395a29c6
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.

(cherry picked from commit 69ba284b5e077075f1211a1053a11dae403648fd)
sv.c