diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-12-16 16:54:06 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-12-16 16:54:06 +0000 |
commit | 2e5b91de24d62e1e2bf0fd32a1d4d1d849cafc82 (patch) | |
tree | 26bb2662cefa3272e2d2d365d577829fa36fbd2f /mg.c | |
parent | 702119bc891cbff15043348ab2eab5c9d600e0be (diff) | |
download | perl-2e5b91de24d62e1e2bf0fd32a1d4d1d849cafc82.tar.gz |
Split out the use of SVp_SCREAM for GVs with GPs into a new symbolic
flag SVpgv_GP, and use this in isGV_with_GP_on/off.
p4raw-id: //depot/perl@29565
Diffstat (limited to 'mg.c')
-rw-r--r-- | mg.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1897,8 +1897,7 @@ Perl_magic_setglob(pTHX_ SV *sv, MAGIC *mg) if (!SvOK(sv)) return 0; - if (SvFLAGS(sv) & SVp_SCREAM - && (SvTYPE(sv) == SVt_PVGV || SvTYPE(sv) == SVt_PVGV)) { + if (isGV_with_GP(sv)) { /* We're actually already a typeglob, so don't need the stuff below. */ return 0; |