Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 perusing the Monastery: (13)
As of 2014-11-24 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (137 votes), past polls