summaryrefslogtreecommitdiff
path: root/mg.h
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2011-09-30 13:48:58 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-10-06 13:01:20 -0700
commit84c7b88ccae183c236ad7ca5cdb8dd097de25420 (patch)
tree577a4bbf1ee6e20f10c3fd0065f5b3de8b54741d /mg.h
parent89a5757c96fe4f4c0a6bfec37e8037a7d311ee5a (diff)
downloadperl-84c7b88ccae183c236ad7ca5cdb8dd097de25420.tar.gz
whichsig nul-cleanup.
This adds _pv, _pvn, and _pv versions of whichsig() in mg.c, which get both kill "NAME" and %SIG lookup nul-clean.
Diffstat (limited to 'mg.h')
-rw-r--r--mg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mg.h b/mg.h
index 848f735d6c..53ef628751 100644
--- a/mg.h
+++ b/mg.h
@@ -61,6 +61,8 @@ struct magic {
#define SvTIED_obj(sv,mg) \
((mg)->mg_obj ? (mg)->mg_obj : sv_2mortal(newRV(sv)))
+#define whichsig(pv) whichsig_pv(pv)
+
/*
* Local variables:
* c-indentation-style: bsd