X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/9a5996c94d9e3da7ea3e0b7e901f86a53b68be2f..3036c853dc4dc12432488679779401c20ddfb64b:/toke.c?ds=sidebyside diff --git a/toke.c b/toke.c index bca5d56..91c5a76 100644 --- a/toke.c +++ b/toke.c @@ -2728,12 +2728,12 @@ S_get_and_check_backslash_N_name(pTHX_ const char* s, const char* const e) if (! isCHARNAME_CONT(*s)) { goto bad_charname; } - if (*s == ' ' && *(s-1) == ' ' && ckWARN(WARN_DEPRECATED)) { + if (*s == ' ' && *(s-1) == ' ' && ckWARN_d(WARN_DEPRECATED)) { Perl_warn(aTHX_ "A sequence of multiple spaces in a charnames alias definition is deprecated"); } s++; } - if (*(s-1) == ' ' && ckWARN(WARN_DEPRECATED)) { + if (*(s-1) == ' ' && ckWARN_d(WARN_DEPRECATED)) { Perl_warn(aTHX_ "Trailing white-space in a charnames alias definition is deprecated"); } } @@ -2771,7 +2771,8 @@ S_get_and_check_backslash_N_name(pTHX_ const char* s, const char* const e) if (! isCHARNAME_CONT(*s)) { goto bad_charname; } - if (*s == ' ' && *(s-1) == ' ' && ckWARN(WARN_DEPRECATED)) { + if (*s == ' ' && *(s-1) == ' ' + && ckWARN_d(WARN_DEPRECATED)) { Perl_warn(aTHX_ "A sequence of multiple spaces in a charnames alias definition is deprecated"); } s++; @@ -2798,7 +2799,7 @@ S_get_and_check_backslash_N_name(pTHX_ const char* s, const char* const e) s += UTF8SKIP(s); } } - if (*(s-1) == ' ' && ckWARN(WARN_DEPRECATED)) { + if (*(s-1) == ' ' && ckWARN_d(WARN_DEPRECATED)) { Perl_warn(aTHX_ "Trailing white-space in a charnames alias definition is deprecated"); } }