diff options
author | Karl Williamson <khw@cpan.org> | 2017-04-24 20:11:40 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2017-11-06 12:50:06 -0700 |
commit | 8a0832a10f1561764283c17de01fc2ebf3097e09 (patch) | |
tree | f53439da154dc83ff0287bfa1124d11b84a9df46 /pp_ctl.c | |
parent | 61e2287f1d50036b5c34917b93d23030d05ec1b5 (diff) | |
download | perl-8a0832a10f1561764283c17de01fc2ebf3097e09.tar.gz |
Use memENDs() in core
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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?)"); } |