m4-patches
[Top][All Lists]
Advanced

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

Re: M4 syntax $11 vs. ${11}


From: Paul Eggert
Subject: Re: M4 syntax $11 vs. ${11}
Date: Fri, 19 Jan 2007 23:43:42 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Eric Blake <address@hidden> writes:

> +  /* This warning must not kill m4 -E, or it will break autoconf.  */
> +  if (text && strstr (text, "${"))
> +    M4ERROR ((0, 0, "Warning: raw `${' in defn of %s will change semantics",
> +           name));

This warning will generate a lot of false positives, right?
Most of the time, a stray ${ in an M4 file won't be followed
by a series of digits and then a }.  So it will be treated
as itself (for backward compatibility).

I suggest having the warning complain only about ${X}, where X is a
string of one or more ASCII digits.  It shouldn't complain about
other usages of ${.  If you do it that way, you shouldn't need
to change either Autoconf or Automake.




reply via email to

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