[Top][All Lists]

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

Re: [PATCH] overquoting in implementation of %code and %defines

From: Paolo Bonzini
Subject: Re: [PATCH] overquoting in implementation of %code and %defines
Date: Sun, 14 Jan 2007 22:42:41 +0100
User-agent: Thunderbird (Macintosh/20061207)

m4_define([b4_prefix], [b4_get_percent_define([[prefix]], [[YY]])])

I don't want to encourage skeleton authors to define such an abbreviation just in order to define a variable's default value. It can suppress helpful warnings about a variable that's sometimes unused.

No, it won't unless you actually use b4_prefix, i.e. unless the b4_get_percent_define is actually expanded.

This should work:

  m4_define_default([b4_percent_define_prefix], [[YY]])

This feature is useless, for the reason I gave above. It's better to make it look like m4_default etc.


reply via email to

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