This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
makedepend.SH: Deal with continuation lines
authorKarl Williamson <public@khwilliamson.com>
Sat, 23 Feb 2013 22:41:28 +0000 (15:41 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 25 Feb 2013 03:20:40 +0000 (20:20 -0700)
commit3c65df45eca48c6eefc4c409ab5a2e3a4fd64afd
tree495b5981a69ce39254db41212b565977a9febf96
parent449353394bc5e632a2c75c2fbdd20126a76755de
makedepend.SH: Deal with continuation lines

makedepend was failing to take into account the fact that preprocessor
directives, like any line, may be continued onto succeeding lines by a
trailing backslash.  This led to errors in the C preprocessing, which were
suppressed on all but os390 systems.o

This commit alleviates that, but it is not a complete solution.  It
deletes C comments, but this being sed, it doesn't catch all nuances of
C comments.  We only care, however, about comments on preprocessor
directive lines, and this is good enough to work on the current Perl
without generating any errors, on my system.

Spotted by John Goodyear.
makedepend.SH