This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
makedepend.SH: Make compiler errors show correct line number
authorKarl Williamson <public@khwilliamson.com>
Sat, 23 Feb 2013 22:34:05 +0000 (15:34 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 25 Feb 2013 03:20:40 +0000 (20:20 -0700)
Instead of inserting "#line 1", insert "#line 2" to account for the
inserted line.

Spotted by John Goodyear.

makedepend.SH

index 445ccfa..f06a483 100755 (executable)
@@ -131,7 +131,7 @@ for file in `$cat .clist`; do
     *)   finc= ;;
     esac
     $echo "Finding dependencies for $filebase$_o."
-    ( $echo "#line 1 \"$file\""; \
+    ( $echo "#line 2 \"$file\""; \
       $sed -n <$file \
        -e "/^${filebase}_init(/q" \
        -e '/^#line/d' \