Don't use a C++ keyword as a variable name ("new").
Nicholas Clark [Fri, 30 Apr 2010 07:12:51 +0000 (08:12 +0100)]
ext/XS-APItest/APItest.xs

index 1a80d59..2abc7c2 100644 (file)
@@ -564,19 +564,19 @@ XS::APItest::PtrTable table
     ptr_table_free(table);
 
 void
-ptr_table_store(table, old, new)
+ptr_table_store(table, from, to)
 XS::APItest::PtrTable table
-SVREF old
-SVREF new
+SVREF from
+SVREF to
    CODE:
-   ptr_table_store(table, old, new);
+   ptr_table_store(table, from, to);
 
 UV
-ptr_table_fetch(table, old)
+ptr_table_fetch(table, from)
 XS::APItest::PtrTable table
-SVREF old
+SVREF from
    CODE:
-   RETVAL = PTR2UV(ptr_table_fetch(table, old));
+   RETVAL = PTR2UV(ptr_table_fetch(table, from));
    OUTPUT:
    RETVAL