PATCH: h2ph produces incorrect code
Billy Constantine [Mon, 6 Apr 1998 23:52:13 +0000 (08:52 +0930)]
p4raw-id: //depot/perl@955

utils/h2ph.PL

index 5c17e97..dc2207c 100644 (file)
@@ -135,7 +135,7 @@ while (defined ($file = next_file())) {
                        }
                    }
                    else {
-                      print OUT "unless defined(\&$name) {\nsub $name $proto\{\n    ${args}eval \"$new\";\n}\n}\n";
+                      print OUT "unless (defined(\&$name)) {\nsub $name $proto\{\n    ${args}eval \"$new\";\n}\n}\n";
                    }
                    %curargs = ();
                }