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 <pd...@york.ac.uk> 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: pd...@york.ac.uk
==========================================================================
--
---
==========================================================================
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: pd...@york.ac.uk
==========================================================================