This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Hard-code op name in ck_exists|delete errors
authorFather Chrysostomos <sprout@cpan.org>
Sun, 8 Sep 2013 21:09:23 +0000 (14:09 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 13 Sep 2013 08:25:35 +0000 (01:25 -0700)
commit0ffcbc25f88c6111d4cf57b2cebcb4e3eab761aa
tree23fe495c9e09bd07adeaf8a95d8632ada790ccfb
parent6e432f9807c51d7c33d50ddc65cbfb0ca6c479d4
Hard-code op name in ck_exists|delete errors

The reason is manifold:
• ck_exists and ck_delete are each only ever called with one op type,
  so we can hard-code the op, which takes less code.
• The messages in perldiag are more helpful if they include
  the op name.
• Changing them in op.c too avoids the need for
  diag_listed_as clutter.

(I know, two of these are not listed in perldiag yet.  I’m get-
ting to that.)
op.c
pod/perldiag.pod