Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by ikegami (Pope)
on Aug 13, 2013 at 13:36 UTC ( #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
Node Status?
node history
Node Type: note [id://1049271]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-07-25 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (170 votes), past polls