Re: store hoh

[email protected] (Patrick Dupre)
Newsgroups perl.xs
Message-ID <[email protected]>
Thank a lot,

In fact I found some information on 
http://lists.perl.org/list/perl-xs.html

However, it os not clear if I should use newRV_inc or newRV_noinc ?

Regards.

> Convert your HV to an RV, then you can add it to an existing HV.  e.g.
>
> hv_store(someHV, "key", 3, newRV_inc((SV *)otherHV), 0);
>
> On Wed, Mar 31, 2010 at 9:21 AM, Patrick Dupre <[email protected]> wrote:
>
>> Hello,
>>
>> How can I store a hash inside a hash (to create a hash of hash) with
>> XS ?
>> hv_store only accept SV*, so I probably need to store my
>> hash inside a SV first !
>>
>> Thank.
>>
>> --
>> ---
>> ==========================================================================
>>  Patrick DUPRÉ                      |   |
>>  Department of Chemistry            |   |    Phone: (44)-(0)-1904-434384
>>  The University of York             |   |    Fax:   (44)-(0)-1904-432516
>>  Heslington                         |   |
>>  York YO10 5DD  United Kingdom      |   |    email: [email protected]
>> ==========================================================================
>

-- 
---
==========================================================================
  Patrick DUPRÉ                      |   |
  Department of Chemistry            |   |    Phone: (44)-(0)-1904-434384
  The University of York             |   |    Fax:   (44)-(0)-1904-432516
  Heslington                         |   |
  York YO10 5DD  United Kingdom      |   |    email: [email protected]
==========================================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.