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: (10)
As of 2015-08-31 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (358 votes), past polls