h2ph: evil linux/byteorder/pdp_endian.h
Jarkko Hietaniemi [Sat, 8 Jun 2002 01:38:50 +0000 (01:38 +0000)]
p4raw-id: //depot/perl@17079

utils/h2ph.PL

index e99df44..783dfc6 100644 (file)
@@ -466,6 +466,10 @@ sub next_line
                 $out    .= $1;
             } elsif ($in =~ s/^([^\'\"\\\/]+)//) {
                 $out    .= $1;
+            } elsif ($^O eq 'linux' &&
+                     $file =~ m!(?:^|/)linux/byteorder/pdp_endian\.h$! &&
+                     $in   =~ s!\'T KNOW!!) {
+                $out    =~ s!I DON$!I_DO_NOT_KNOW!;
             } else {
                die "Cannot parse:\n$in\n";
             }