develooper Front page | perl.perl5.porters | Postings from November 2013

Re: Padlist NULL pointer?

Thread Previous | Thread Next
Father Chrysostomos
November 2, 2013 19:58
Re: Padlist NULL pointer?
Message ID:
Marc Lehmann wrote:
> I don't like the while loop, but I can't see how one can be avoided. I
> wonder if I could just steal the pad at CvDEPTH + 1 by null'ing it.

Yes, I think that would work.

pad_push does this:

    if (depth > PadlistMAX(padlist) || !PadlistARRAY(padlist)[depth]) {
    if (depth > PadlistMAX(padlist) || !PadlistARRAY(padlist)[depth]) {...
    if (depth > PadlistMAX(padlist) || !PadlistARRAY(padlist)[depth]) {...padlist_store(padlist, depth, newpad);

And padlist_store does:

    ary = PadlistARRAY(padlist);
    ary[key] = val;

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About