Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Not able to pass the hash reference to callback from xsubpp

by ikegami (Patriarch)
on Aug 13, 2013 at 13:36 UTC ( [id://1049271]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    HV* data_hash     = newHV();
    SV* data_hash_ref = newRV_inc(data_hash);
    ...
    
    SvREFCNT_dec(data_hash_ref);  /* Or motalise and return to caller */
    SvREFCNT_dec(data_hash);
    
  2. or download this
    HV* data_hash     = newHV();
    SV* data_hash_ref = newRV_noinc(data_hash);
    ...
    ...
    
    SvREFCNT_dec(data_hash_ref);  /* Or motalise and return to caller */
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1049271]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-26 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found