In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/ac5b5e2ca85da2175f9bfcad4fecc9e703956482?hp=f6f22b1fc01b8676e43ef64616ed7899a84bfec2>

- Log -----------------------------------------------------------------
commit ac5b5e2ca85da2175f9bfcad4fecc9e703956482
Author: David Mitchell <[email protected]>
Date:   Fri Oct 17 15:08:22 2014 +0100

    fix typo in regen/opcode.pl

M       opcode.h
M       regen/opcode.pl

commit 8160c8f5087e2f3acc3f9423356949718103de98
Author: David Mitchell <[email protected]>
Date:   Fri Oct 17 14:29:33 2014 +0100

    pp_av2arylen(): rename var from 'sv' to svp'
    
    Conventionally we name variables of type 'SV**' svp rather than sv.
    Calling the var 'sv' in this small function initially confused me,
    so rename it.

M       pp.c
-----------------------------------------------------------------------

Summary of changes:
 opcode.h        |  2 +-
 pp.c            | 10 +++++-----
 regen/opcode.pl |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/opcode.h b/opcode.h
index ca1f836..40cdc81 100644
--- a/opcode.h
+++ b/opcode.h
@@ -2339,7 +2339,7 @@ EXTCONST char PL_op_private_labels[] = {
 
 
 /* PL_op_private_bitfields[]: details about each bit field type.
- * Each defintition consists of the following list of words:
+ * Each definition consists of the following list of words:
  *    bitmin
  *    label (index into PL_op_private_labels[]; -1 if no label)
  *    repeat for each enum entry (if any):
diff --git a/pp.c b/pp.c
index 67dc770..250e966 100644
--- a/pp.c
+++ b/pp.c
@@ -418,12 +418,12 @@ PP(pp_av2arylen)
     AV * const av = MUTABLE_AV(TOPs);
     const I32 lvalue = PL_op->op_flags & OPf_MOD || LVRET;
     if (lvalue) {
-       SV ** const sv = Perl_av_arylen_p(aTHX_ MUTABLE_AV(av));
-       if (!*sv) {
-           *sv = newSV_type(SVt_PVMG);
-           sv_magic(*sv, MUTABLE_SV(av), PERL_MAGIC_arylen, NULL, 0);
+       SV ** const svp = Perl_av_arylen_p(aTHX_ MUTABLE_AV(av));
+       if (!*svp) {
+           *svp = newSV_type(SVt_PVMG);
+           sv_magic(*svp, MUTABLE_SV(av), PERL_MAGIC_arylen, NULL, 0);
        }
-       SETs(*sv);
+       SETs(*svp);
     } else {
        SETs(sv_2mortal(newSViv(AvFILL(MUTABLE_AV(av)))));
     }
diff --git a/regen/opcode.pl b/regen/opcode.pl
index 402929f..b9d7042 100755
--- a/regen/opcode.pl
+++ b/regen/opcode.pl
@@ -801,7 +801,7 @@ $PL_op_private_labels
 
 
 /* PL_op_private_bitfields[]: details about each bit field type.
- * Each defintition consists of the following list of words:
+ * Each definition consists of the following list of words:
  *    bitmin
  *    label (index into PL_op_private_labels[]; -1 if no label)
  *    repeat for each enum entry (if any):

--
Perl5 Master Repository

Reply via email to