summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2013-05-27 00:10:57 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-05-27 00:50:03 -0700
commit3036c853dc4dc12432488679779401c20ddfb64b (patch)
tree3e7e06d1cdbc59066b7e4bbbea76e7a5a9cc937a /toke.c
parent9a5996c94d9e3da7ea3e0b7e901f86a53b68be2f (diff)
downloadperl-3036c853dc4dc12432488679779401c20ddfb64b.tar.gz
Turn \N{ } deprecation warnings on by default
All deprecation warnings are supposed to be on by default, but these two were not.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/toke.c b/toke.c
index bca5d56779..91c5a76d89 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");
}
}