automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rb9: Comments following backslashes


From: richard boulton
Subject: rb9: Comments following backslashes
Date: Sat, 18 Aug 2001 07:22:12 -0700 (PDT)

In both branch-real-1.5 and HEAD, if there is an
automake comment (ie, introduced with ##) immediately
following a line terminated with a \, the line is
ignored, but the item being defined is also silently
forgotten.

For example, if Makefile.am contains
        var=foo \
        ## not bar \
        baz
then var will not be defined at all, and no error
message is given.

The behaviour with standard comments (ie, introduced
with #) in this situtation is to give an error
message: the attached patch makes this the behaviour
for automake comments too, and checks it with a
testcase.  The patch is against branch-real-1-5, but
should apply to HEAD too.

(Perhaps it would be useful to allow this style of
commenting to work, so in the example above var would
be defined as "foo baz".  I've seen several examples
of this kind of use, and have occasionally done it
myself without thinking, expecting it to work.  I
don't think it would be too hard a patch to write.)

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Attachment: branch-real-1-5_patch1
Description: branch-real-1-5_patch1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]