Add DGrow ()
commita607cc98a882f2680c6fb6b98c535c5c8a323d6c
authorH.Merijn Brand <merijn@nb09.procura.nl>
Fri, 6 Nov 2009 22:08:24 +0000 (6 23:08 +0100)
committerH.Merijn Brand <merijn@nb09.procura.nl>
Fri, 6 Nov 2009 22:08:24 +0000 (6 23:08 +0100)
treec154b7792fd582b18c7c5cf85f7c2cb044eb608c
parent8fd583d27874472a00abae6952fd991ef1aeb3a8
Add DGrow ()

The problem is that DDump passes *a copy of* the scalar to DDump_XS
or DDump_IO.  The copying process doesn't preserve the allocated space.
The attached patch fixes this, making t/52_DGrow.t pass (apart from
the incorrect test count), but also makes most of t/30_DDump-s.t fail,
because it was relying on a similar side-effect of the copying.
ChangeLog
Peek.pm
Peek.xs
sandbox/genMETA.pl
t/30_DDump-s.t
t/52_DGrow.t [new file with mode: 0644]