mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-30 11:01:45 +08:00
Fix an incorrect quoting example; reported by Eric Sunshine.
This commit is contained in:
parent
82fea9e4f7
commit
df495a3499
@ -1,3 +1,8 @@
|
||||
2004-01-06 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* doc/autoconf.texi (One Macro Call): Fix an incorrect
|
||||
example, and add more examples. Reported by Eric Sunshine.
|
||||
|
||||
2004-01-05 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* doc/autoconf.texi (Limitations of Usual Tools):
|
||||
|
@ -7504,8 +7504,8 @@ define([car], [$1])
|
||||
@noindent
|
||||
The two pairs of quotes above are not part of the arguments of
|
||||
@code{define}; rather, they are understood by the top level when it
|
||||
tries to find the arguments of @code{define}. Therefore, it is
|
||||
equivalent to write:
|
||||
tries to find the arguments of @code{define}. Therefore, assuming
|
||||
@code{car} is not already defined, it is equivalent to write:
|
||||
|
||||
@example
|
||||
define(car, $1)
|
||||
@ -7548,7 +7548,7 @@ car([#])
|
||||
@result{}#
|
||||
@end example
|
||||
|
||||
The reader will easily understand the following examples:
|
||||
Here are more examples:
|
||||
|
||||
@example
|
||||
car(foo, bar)
|
||||
@ -7559,9 +7559,19 @@ car((foo, bar))
|
||||
@result{}(foo, bar)
|
||||
car([(foo], [bar)])
|
||||
@result{}(foo
|
||||
car([], [])
|
||||
define([a], [b])car(a)
|
||||
@result{}b
|
||||
car([a])
|
||||
@result{}b
|
||||
car([[a]])
|
||||
@result{}a
|
||||
car([[[a]]])
|
||||
@result{}[a]
|
||||
car([])
|
||||
@result{}
|
||||
car([[]], [[]])
|
||||
car([[]])
|
||||
@result{}
|
||||
car([[[]]])
|
||||
@result{}[]
|
||||
@end example
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user