summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-04-24 20:11:40 -0600
committerKarl Williamson <khw@cpan.org>2017-11-06 12:50:06 -0700
commit8a0832a10f1561764283c17de01fc2ebf3097e09 (patch)
treef53439da154dc83ff0287bfa1124d11b84a9df46 /pp_ctl.c
parent61e2287f1d50036b5c34917b93d23030d05ec1b5 (diff)
downloadperl-8a0832a10f1561764283c17de01fc2ebf3097e09.tar.gz
Use memENDs() in core
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 1c219f1a4a..404232824b 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -4180,10 +4180,10 @@ S_require_file(pTHX_ SV *sv)
sv_catpv(msg, " module)");
}
}
- else if (len >= 2 && memEQ(name + len - 2, ".h", 3)) {
+ else if (memENDs(name, len, ".h")) {
sv_catpv(msg, " (change .h to .ph maybe?) (did you run h2ph?)");
}
- else if (len >= 3 && memEQ(name + len - 3, ".ph", 4)) {
+ else if (memENDs(name, len, ".ph")) {
sv_catpv(msg, " (did you run h2ph?)");
}