Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 meditating upon the Monastery: (6)
As of 2014-12-20 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls