diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-01-04 16:20:43 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-01-04 16:20:43 +0000 |
commit | 42262798c481d45af93e570836f42d0cd872e008 (patch) | |
tree | f224bf72142bf6cba19224b702242ea06f891c97 /xsutils.c | |
parent | 7a4035659c7c5c03891c6a4abd384eaf4aa6753a (diff) | |
download | perl-42262798c481d45af93e570836f42d0cd872e008.tar.gz |
Check all attributes in modify_SV_attributes are recognised.
Fix bug where 'assertion' was always rejected as invalid.
p4raw-id: //depot/perl@23744
Diffstat (limited to 'xsutils.c')
-rw-r--r-- | xsutils.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -71,6 +71,15 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs) switch (SvTYPE(sv)) { case SVt_PVCV: switch ((int)len) { + case 9: + if (strEQ(name, "assertion")) { + if (negated) + CvFLAGS((CV*)sv) &= ~CVf_ASSERTION; + else + CvFLAGS((CV*)sv) |= CVf_ASSERTION; + continue; + } + break; case 6: switch (*name) { case 'a': |