In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/d024465fe3cc8e4457de17ba501f5b28a53f0872?hp=9df83ffded21f5c1d01d1ef847c3447b6553810f>

- Log -----------------------------------------------------------------
commit d024465fe3cc8e4457de17ba501f5b28a53f0872
Author: Tony Cook <[email protected]>
Date:   Tue Jul 13 15:11:54 2010 +1000

    new is a reserved word in C++, don't use it as a variable name
    
    Fix a cause of black smoke for C++ builds.
-----------------------------------------------------------------------

Summary of changes:
 ext/XS-APItest/APItest.xs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs
index 2f2a8a7..3b90d95 100644
--- a/ext/XS-APItest/APItest.xs
+++ b/ext/XS-APItest/APItest.xs
@@ -256,13 +256,13 @@ blockhook_csc_start(pTHX_ int full)
 
     if (cur) {
         I32 i;
-        AV *const new = newAV();
+        AV *const new_av = newAV();
 
         for (i = 0; i <= av_len(cur); i++) {
-            av_store(new, i, newSVsv(*av_fetch(cur, i, 0)));
+            av_store(new_av, i, newSVsv(*av_fetch(cur, i, 0)));
         }
 
-        GvAV(MY_CXT.cscgv) = new;
+        GvAV(MY_CXT.cscgv) = new_av;
     }
 }
 

--
Perl5 Master Repository

Reply via email to