Loading...
Loading...
x
Home
>
Groups
>
Perl 5 Porters
>
XS question
(10 posts) > View Post
Re: XS question
View Post
Flat
Thread
Threaded
|
< Prev
Nicholas Clark
Re: XS question
|
+1 vote
[
Profile
|
Reply to group
]
[
Flat
Thread
Threaded
]
On Thu, Jul 02, 2009 at 07:42:08PM +0200, Torsten Foertsch wrote:
> It depends on the fact that Safefree is not called if SvLEN(sv)==0. Can
> I rely on that in the future?
Yes.
Nicholas Clark
Thread : XS question
1)
Torsten Foertsch
Hi, perhaps this is not the right list but I know the knowledge is here. So, please be lenient. I...
2)
Torsten Foertsch
To answer myself, I think this does the trick: sv=newSV(0); SvUPGRADE(sv, SVt_PV); SvPOK_only(sv);...
3)
Vincent Pit
I think tt may be safer to also set SVf_FAKE, so that your sv will appear as a shared SV. As such,...
4)
Torsten Foertsch
I thought so but I haven't found any documentation about that flag. Is there any? BTW, is SVf_FAKE...
5)
Torsten Foertsch
Actually SvFAKE_on(sv) leads to Assertion he->shared_he_he.hent_hek == hek failed: file "hv.c",...
6)
Jan Dubois
Not sure about that. SvLEN(sv) being 0 should be enough. Setting SVf_FAKE marks it as a shared hash...
7)
Cosimo Streppone
2009/7/2 Jan Dubois <jand@activestate.com>: Hi Jan, I've been through that, writing "some...
8)
Jan Dubois
I would probably just use Perl_ninstr(). Unfortunately it doesn't have a perlapi.pod entry; you...
9)
Nicholas Clark
Setting SVf_FAKE is a bad idea. It has a lot of special meanings:...
10)
Nicholas Clark
Yes. Nicholas Clark
Highlight
View Post
Flat
Thread
Threaded
|
< Prev
Home
>
Groups
>
Perl 5 Porters
>
XS question
(10 posts) > View Post
Grokbase
|
Groups
|
Tags
|
People
|
Add a group
|
FAQ
|
About
Provide
feedback
|