[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_DEFUN([CL_FFCALL],[dnl
> 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_DEFUN([CL_FFCALL],
[AC_ARG_WITH([ffcall],
[AC_HELP_STRING([--with-ffcall], ...)])])
Cheers,
Ralf
- m4 indentation, William Pursell, 2008/03/16
- Re: m4 indentation,
Ralf Wildenhues <=