This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Change (l)stat’s prototype from * to ;*
authorFather Chrysostomos <sprout@cpan.org>
Fri, 12 Aug 2011 05:19:50 +0000 (22:19 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 12 Aug 2011 13:28:10 +0000 (06:28 -0700)
commit465bc0f5bf04702adf1825f8db8511ecc5c3adfc
tree089d41911358bd6b5f17d1169cee5794637a31e1
parent93e6f00ed5ef68c787902ea1f88084f619b59561
Change (l)stat’s prototype from * to ;*

Since the argument is optional, we need a semicolon.

This commit accomplishes that by setting the OA_OPTIONAL flag for the
appropriate  entries in PL_opargs.  This should not affect anything
else, as ck_ftst (the check routine for [l]stat) doesn’t even look at
PL_opargs.

It also has to tweak the prototype-generation logic slightly, because
PL_opargs also has OA_DEFGV set.

I think this is insignificant enough not to warrant a delta entry.
op.c
opcode.h
regen/opcodes
t/op/cproto.t