In perl.git, the branch maint-5.22 has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/69786aa7e563ebda50aadaaead54c0f4e9bd6393?hp=89b0fe36d9428d64eb6c6cf73223d8e122e1ec01>

- Log -----------------------------------------------------------------
commit 69786aa7e563ebda50aadaaead54c0f4e9bd6393
Author: Ricardo Signes <[email protected]>
Date:   Thu Jul 21 21:07:17 2016 +0100

    perldelta for previous commit
    
    (manually cherry picked from commit 
73d6481e251515b5d92adeb35d5a09b102f9304f)

M       pod/perldelta.pod

commit d7a698438bf95848be8180e40350a98f973bd928
Author: David Mitchell <[email protected]>
Date:   Mon Jun 8 09:15:17 2015 +0100

    make PadlistNAMES() lvalue again.
    
    The PadlistNAMES() macro was introduced with v5.17.3-69-g86d2498.
    This macro happened to be lvalue-capable, although it wasn't documented
    as such.
    
    v5.21.6-163-g9b7476d as a side effect, broke the lvalueness, which broke
    Coro.
    
    This commit restores the lvalueness.
    
    (cherry picked from commit 73949fca082fe50bf47755c5ffa328259057ae36)

M       pad.h
-----------------------------------------------------------------------

Summary of changes:
 pad.h             |  2 +-
 pod/perldelta.pod | 10 ++++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/pad.h b/pad.h
index 1f86248..31b8715 100644
--- a/pad.h
+++ b/pad.h
@@ -295,7 +295,7 @@ Restore the old pad saved into the local variable opad by 
PAD_SAVE_LOCAL()
 
 #define PadlistARRAY(pl)       (pl)->xpadl_alloc
 #define PadlistMAX(pl)         (pl)->xpadl_max
-#define PadlistNAMES(pl)       ((PADNAMELIST *)*PadlistARRAY(pl))
+#define PadlistNAMES(pl)       *((PADNAMELIST **)PadlistARRAY(pl))
 #define PadlistNAMESARRAY(pl)  PadnamelistARRAY(PadlistNAMES(pl))
 #define PadlistNAMESMAX(pl)    PadnamelistMAX(PadlistNAMES(pl))
 #define PadlistREFCNT(pl)      1       /* reserved for future use */
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 58d604b..601fe02 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -86,6 +86,16 @@ B<-Di> switch is working correctly.
 
 =back
 
+=head1 Selected Bug Fixes
+
+=over 4
+
+=item *
+
+The C<PadlistNAMES> macro is an lvalue again.
+
+=back
+
 =head1 Acknowledgements
 
 Perl 5.22.3 represents approximately 3 months of development since Perl 5.22.2

--
Perl5 Master Repository

Reply via email to