m4-discuss
[Top][All Lists]
Advanced

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

Re: Recommended m4 macro naming convention?


From: Daniel Goldman
Subject: Re: Recommended m4 macro naming convention?
Date: Sat, 03 May 2014 22:33:19 -0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Thanks for answering my questions.

Daniel

On 5/2/2014 5:13 AM, Eric Blake wrote:

Yes, you got that right.

m4 is used in so many different contexts, and the language itself
doesn't care, so it is really up to your application to choose a
convention.  But yes, autoconf recommends ALL_CAPS, or possibly
sig_ALL_CAPS (where sig_ represents a lowercase namespace for a set of
macros provided from a single source), as the easiest to recognize.
Although the builtins default to lower case, m4 lets you rename the
builtins to whatever naming convention you'd like.

Again, that's more up to your project, and what you want to document and
maintain for your local use of m4.




reply via email to

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