Freak out if h2ph has to translate a macro that contains assembly code.
Rafael Garcia-Suarez [Thu, 25 Nov 2004 17:24:43 +0000 (18:24 +0100)]
Subject: [PATCH] h2ph vs __asm__
Message-ID: <20041125172443.757a4833@dhcp123.mandrakesoft.com>

p4raw-id: //depot/perl@23547

utils/h2ph.PL

index c6a39c9..f715f50 100644 (file)
@@ -391,6 +391,7 @@ if ($opt_e && (scalar(keys %bad_file) > 0)) {
 exit $Exit;
 
 sub expr {
+    $new = '"(assembly code)"' and return if /\b__asm__\b/; # freak out.
     my $joined_args;
     if(keys(%curargs)) {
        $joined_args = join('|', keys(%curargs));