This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
standardise amagic method naming
authorDavid Mitchell <davem@iabyn.com>
Thu, 30 Dec 2010 16:29:12 +0000 (16:29 +0000)
committerDavid Mitchell <davem@iabyn.com>
Fri, 31 Dec 2010 12:01:48 +0000 (12:01 +0000)
commit31d632c315ee363ec7894471fe0f73dc96f5c042
treedbfeaf1f0c28237ece34455e1c08645b62f2e1cc
parentada6eeb82df60fbe63c781f1a102393fd56d104b
standardise amagic method naming

Some amagic-related macros take the full method enumeration name,
(e.g. "add_amg"); while others "helpfully" allow you to pass a shortened
version, ("add"), and do a CAT2(meth,_amg) behind the scenes.

Standardise on passing the full name; this makes it less confusing and
allows you to grep for the enumeration name in the source.

It updates two macros to accept full enumeration names: tryAMAGICunTARGET
(which isn't used outside the core apparently), and AMG_CALLun, which is
replaced by a new AMG_CALLunary (since AMG_CALLun is used outside the
core).
gv.c
pp.c
pp.h
pp_ctl.c
pp_hot.c
pp_sort.c
pp_sys.c
sv.c