From: Quinn Grier Date: Wed, 2 Nov 2016 05:58:25 +0000 (-0500) Subject: doc: fix an infinitely recursing example X-Git-Tag: v2.69b~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2621a91d70e5c86f4fbdce25eeb0f83df6645b6;p=thirdparty%2Fautoconf.git doc: fix an infinitely recursing example The "single" macro infinitely recurses because its expansion contains the unquoted text " single-". The "double" macro almost has the same problem, but it is protected by extra quotes. In any case, the macro names being repeated in the macro definitions is not necessary. This commit changes the macro names to "foo" and "bar", which are taken from a very similar example in the GNU M4 1.4.17 manual. See lines 1971 to 1980 of v1.4.17:doc/m4.texi in the GNU M4 Git repository. * doc/autoconf.texi (Quoting and Parameters): Fix broken example. --- diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 3e3a894c..00ca345d 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -10573,13 +10573,13 @@ quoting; if the usage is already inside a double-quoted string, then split it into concatenated strings. @example -define([single], [a single-quoted $[]1 definition]) +define([foo], [a single-quoted $[]1 definition]) @result{} -define([double], [[a double-quoted $][1 definition]]) +define([bar], [[a double-quoted $][1 definition]]) @result{} -single +foo @result{}a single-quoted $1 definition -double +bar @result{}a double-quoted $1 definition @end example