develooper Front page | perl.perl5.porters | Postings from October 2014

Re: Any empty members in struct xpvcv AKA CV that an XSUB can use?

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
October 21, 2014 13:13
Subject:
Re: Any empty members in struct xpvcv AKA CV that an XSUB can use?
Message ID:
20141021131255.22609.qmail@lists-nntp.develooper.com
Daniel Dragan wrote:
> Id like to know if there is a 2nd unused memeber in struct xpvcv. I know
> that  union xcv_start_u  that has "OP *    xcv_start;" also has the very
> awesome "ANY    xcv_xsubany;" which is used by ParseXS and manually by
> me in CPAN code. "union xcv_root_u;" contains the xsub's C func pointer
> so that is occupied. What about     PADLIST *    xcv_padlist; as a 2nd
> ununused member for XSUBs in struct xpvcv? I'd rather not resort to
> magic to add a 2nd magic value to a CV * if I dont have to.

While that will probably work most of the time (as would xcv_outside
I think), you would have to be careful not to run it through
Perl_sv_dump() or the standard thread-cloning code.  Can you use
xcv_depth or xcv_outside_seq?  Or does your code have to run
on 64-bit?


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About