* HACKING: Update note about use of `$#' in m4 macros.

This commit is contained in:
Stepan Kasal 2005-10-27 13:34:07 +00:00 committed by Ralf Wildenhues
parent 60f1724476
commit 6e177b3087
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-10-27 Stepan Kasal <kasal@ucw.cz>
* HACKING: Update note about use of `$#' in m4 macros.
2005-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2005-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments. * tests/tagtrace.test: Allow `$AUTOCONF' to contain arguments.

View File

@ -241,8 +241,11 @@ yyyy-mm-dd Name of Author <email@address> (tiny change)
$ECHO ".." for strings without leading hyphen, $ECHO ".." for strings without leading hyphen,
$ECHO "X.." | $Xsed otherwise. $ECHO "X.." | $Xsed otherwise.
* Do not use the number of macro arguments `$#' in public macros; * The Autoconf manual says that giving an empty parameter is equivalent
AU_ALIAS may change it. to not giving it at all. (In particular, the Autoconf manual doesn't
explain that "FOO()" is calling macro FOO with one empty parameter.)
To prevent misunderstanding, we should use m4_ifval to check whether
a parameter is empty, and not $# to check for the number of parameters.
9. Abstraction layers in libltdl 9. Abstraction layers in libltdl