tech-toolchain archive

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

Re: make: avoid segfault on parse error



In article <20081021182253.E7A4E668B%void.crufty.net@localhost>,
Simon J. Gerraty <sjg%crufty.net@localhost> wrote:
>While trying to trick make into handling something like:
>
>VAR += ${${X:U0} > 0:?Use $X:}
>
>I came accross the need for something like this.

I see why this is happening now. The conditional is evaluated after parsing
is done and the conditional evaluation code is using Parse_Error to report
errors. I guess your fix is fine then.

christos



Home | Main Index | Thread Index | Old Index