summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-07 16:09:54 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-07 16:09:54 +0000
commit5bd95c494f398f3d19fde7e7edcfb5e645c8f76d (patch)
tree3b496baf200a0745d01c384d216a2c08243f271b /mg.c
parentf30249a0e874f3f506d3557c6d242536aafd08b5 (diff)
downloadperl-5bd95c494f398f3d19fde7e7edcfb5e645c8f76d.tar.gz
${^Warnings} renamed to ${^WARNING_BITS}
p4raw-id: //depot/perl@5025
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mg.c b/mg.c
index 893f4ff914..9dc70300dc 100644
--- a/mg.c
+++ b/mg.c
@@ -570,10 +570,10 @@ Perl_magic_get(pTHX_ SV *sv, MAGIC *mg)
case '\025': /* ^U */
sv_setiv(sv, (IV)PL_bigchar);
break;
- case '\027': /* ^W & $^Warnings*/
+ case '\027': /* ^W & $^WARNING_BITS */
if (*(mg->mg_ptr+1) == '\0')
sv_setiv(sv, (IV)((PL_dowarn & G_WARN_ON) ? TRUE : FALSE));
- else if (strEQ(mg->mg_ptr, "\027arnings")) {
+ else if (strEQ(mg->mg_ptr, "\027ARNING_BITS")) {
if (PL_compiling.cop_warnings == WARN_NONE ||
PL_compiling.cop_warnings == WARN_STD)
{
@@ -1713,7 +1713,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
case '\025': /* ^U */
PL_bigchar = SvTRUE(sv);
break;
- case '\027': /* ^W & $^Warnings */
+ case '\027': /* ^W & $^WARNING_BITS */
if (*(mg->mg_ptr+1) == '\0') {
if ( ! (PL_dowarn & G_WARN_ALL_MASK)) {
i = SvIOK(sv) ? SvIVX(sv) : sv_2iv(sv);
@@ -1721,7 +1721,7 @@ Perl_magic_set(pTHX_ SV *sv, MAGIC *mg)
| (i ? G_WARN_ON : G_WARN_OFF) ;
}
}
- else if (strEQ(mg->mg_ptr, "\027arnings")) {
+ else if (strEQ(mg->mg_ptr, "\027ARNING_BITS")) {
if ( ! (PL_dowarn & G_WARN_ALL_MASK)) {
if (memEQ(SvPVX(sv), WARN_ALLstring, WARNsize)) {
PL_compiling.cop_warnings = WARN_ALL;