new is a reserved word in C++, don't use it as a variable name
authorTony Cook <tony@develop-help.com>
Tue, 13 Jul 2010 05:11:54 +0000 (15:11 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 13 Jul 2010 05:11:54 +0000 (15:11 +1000)
Fix a cause of black smoke for C++ builds.

ext/XS-APItest/APItest.xs

index 2f2a8a7..3b90d95 100644 (file)
@@ -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;
     }
 }