This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
another fix for bison 2.3
authorDave Mitchell <davem@fdisolutions.com>
Mon, 4 Dec 2006 12:08:56 +0000 (12:08 +0000)
committerDave Mitchell <davem@fdisolutions.com>
Mon, 4 Dec 2006 12:08:56 +0000 (12:08 +0000)
p4raw-id: //depot/perl@29449

regen_perly.pl

index a046399..d34a8ad 100644 (file)
@@ -172,6 +172,9 @@ sub extract {
        or die "Can't extract actions from $tmpc_file\n";
     $actlines = $1;
 
+    # C<#line 188 "perlytmp.c"> gets picked up by make depend, so remove them.
+    $actlines =~ s/^#line \d+ "\Q$tmpc_file\E".*$//gm;
+
     return $actlines. "\n", $tablines. "\n";
 }