develooper Front page | perl.perl5.porters | Postings from November 2003

[PATCH] promote hv_clear_placeholders to perl API

Thread Next
From:
Alan Burlison
Date:
November 20, 2003 02:35
Subject:
[PATCH] promote hv_clear_placeholders to perl API
Message ID:
3FBC98B6.6090909@sun.com
universal.c contains XSUB code to clear the placeholders from restricted 
hashes - Internals::hv_clear_placeholders().  Because it is an XSUB function 
it isn't particularly easy to call from other XSUB code that wants to 
manipulate restricted hashes.  Internals::hv_clear_placeholders() is fairly 
torturous, so the chances of XSUB authors reimplementing it correctly 
themselves are small.  I therefore propose that 
Internals::hv_clear_placeholders() is promoted to be part of the perl API. 
The attached patches (one for maint, one for blead) are identical in 
function, they move the guts of Internals::hv_clear_placeholders() from 
universal.c into a new function called hv_clear_placeholders() in hv.c, and 
  Internals::hv_clear_placeholders() becomes a simple wrapper around 
hv_clear_placeholders().  There should be no binary compatibility issues as 
this only adds a new function and does not change any existing function 
signatures or behaviour.

p.s. don't forget to 'perl regen.pl' after applying the patch.

-- 
Alan Burlison
--

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About