[Top][All Lists]

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

Re: Is autoupdate supposed to scan comments?

From: Eric Blake
Subject: Re: Is autoupdate supposed to scan comments?
Date: Tue, 19 Feb 2008 06:35:48 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20071031 Thunderbird/ Mnenhy/

Hash: SHA1

According to NightStrike on 2/18/2008 10:40 PM:
| I have a file with a line like this:
| #AC_CANONICAL_SYSTEM is obsolete
| When I run autoupdate, it changes that line to read:
| #AC_CANONICAL_TARGET is obsolete
| Shouldn't autoupdate ignore comments when scanning for macro names
| that need to updating?

I'm not sure that this is wise, since how do you tell a true m4 comment
apart from quoted content like [#include <stdlib.h>]?  It might be
possible to patch autoupdate to no longer disable comments, but I don't
know how easy it would be, since autoupdate does quite a bit of m4 magic
in defining which macros exist at which time, nor do I know if it would
break other things.

|  Or am I doing something wrong?

No - for now, the fact that autoupdate disables all comments (or in other
words, updates the contents of comments) is intentional - look at
autoupdate, for the definition of __au_disable.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at
Comment: Using GnuPG with Mozilla -


reply via email to

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