[Top][All Lists]

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

Re: m4 indentation

From: Ralf Wildenhues
Subject: Re: m4 indentation
Date: Sun, 16 Mar 2008 10:49:06 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* William Pursell wrote on Sun, Mar 16, 2008 at 09:48:11AM CET:
> AC_ARG_WITH([ffcall],
> [AC_HELP_STRING([--with-ffcall],
> the idiom of using dnl to suppress the newline is common,
> as is the lack of indentation to prevent m4 from inserting
> unwanted white space.  Is there any mechanism in m4 to allow
> indentation?  For example, a label like "ind" similar to dnl
> that, when present, would tell m4 to discard following whitespace
> and allow the above to be written as:

No, but you can also take advantages of the fact that leading (but not
trailing!) whitespace in a macro argument is dropped, and that often,
leading whitespace does not matter for further computation.

So nothing prevents you from writing:

                      [AC_HELP_STRING([--with-ffcall], ...)])])


reply via email to

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