This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
full API for cop hint hashes
authorZefram <zefram@fysh.org>
Tue, 19 Oct 2010 16:31:46 +0000 (09:31 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 21 Oct 2010 12:55:28 +0000 (05:55 -0700)
commit20439bc77dfeec46d94a15cf108446039e26c995
treeea8f1eb9a1f1003a110114977d660f97d96a5bc2
parent53d84487fbdd2060c1a666eacaef6e34ce4a1483
full API for cop hint hashes

Expose cop hint hashes as a type COPHH, with a cophh_* API which is a
macro layer over the refcounted_he_* API.  The documentation for cophh_*
describes purely API-visible behaviour, whereas the refcounted_he_*
documentation describes the functions mainly in terms of the
implementation.  Revise the cop_hints_* API, using the flags parameter
consistently and reimplementing in terms of cophh_*.  Use the cophh_*
and cop_hints_* functions consistently where appropriate.

[Modified by the committer to update two calls to
Perl_refcounted_he_fetch recently added to newPMOP.]
19 files changed:
MANIFEST
cop.h
embed.fnc
embed.h
ext/B/B.xs
ext/XS-APItest/APItest.xs
ext/XS-APItest/t/cophh.t [new file with mode: 0644]
global.sym
gv.c
hv.c
hv.h
mg.c
op.c
perl.c
perlio.c
pp_ctl.c
proto.h
scope.c
sv.c