}
/* Delete an object from all field hashes it may occur in. Also delete
- * the object's entry from the object registry.
+ * the object's entry from the object registry. This function goes in
+ * the uf_set field of the uvar magic of a trigger.
*/
I32 HUF_destroy_obj(pTHX_ IV index, SV* trigger) {
/* Do nothing if the weakref wasn't undef'd. Also don't bother
int HUF_get_status(HV* hash) {
int ans = 0;
if (hash && (SvTYPE(hash) == SVt_PVHV)) {
- dMY_CXT;
MAGIC* mg;
struct ufuncs* uf;
ans = (mg = mg_find((SV*)hash, PERL_MAGIC_uvar)) &&
OUTPUT:
RETVAL
-SV*
+void
_active_fields(SV* obj)
PPCODE:
if (SvROK(obj)) {
VERSION_FROM => 'lib/Hash/Util/FieldHash.pm', # finds $VERSION
PREREQ_PM => {}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
- (ABSTRACT_FROM => 'lib/Hash/Util/FieldHash.pm', # retrieve abstract from module
+ (ABSTRACT_FROM => 'lib/Hash/Util/FieldHash.pm',
AUTHOR => 'Anno Siegel <anno4000@zrz.tu-berlin.de>') : ()),
LIBS => [''], # e.g., '-lm'
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
# see that Hash::Util::FieldHash and Hash::Util load and export what
# they should
-# note to self: this test only works in the perl build environment,
-# not in my homely test environment (haven't got the right Hash::Util.pm
-# there). mask it.
-
BEGIN {
use_ok( 'Hash::Util');
ok( defined( &Hash::Util::lock_keys), "Hash::Util::lock_keys found");