This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use FooBAR convention for new pad macros
authorFather Chrysostomos <sprout@cpan.org>
Thu, 23 Aug 2012 04:48:56 +0000 (21:48 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 23 Aug 2012 04:59:40 +0000 (21:59 -0700)
commit86d2498c0b3132b9d76f935b317b213effc43990
treed6a4313b70aa737af7fd7f3e1af85f33a9359a9f
parent502e97e076ed47d4a88af1994a7c61990ad48868
Use FooBAR convention for new pad macros

After a while, I realised that it can be confusing for PAD_ARRAY and
PAD_MAX to take a pad argument, but for PAD_SV to take a number and
PAD_SET_CUR a padlist.

I was copying the HEK_KEY convention, which was probably a bad idea.
This is what we use elsewhere:

   TypeMACRO
   ----=====
     AvMAX
    CopFILE
   PmopSTASH
  StashHANDLER
 OpslabREFCNT_dec

Furthermore, heks are not part of the API, so what convention they use
is not so important.

So these:

    PADNAMELIST_*
    PADLIST_*
    PADNAME_*
    PAD_*

are now:

    Padnamelist*
    Padlist*
    Padname*
    Pad*
dump.c
ext/B/B.xs
ext/Devel-Peek/Peek.xs
ext/XS-APItest/APItest.xs
pad.c
pad.h
sv.c