This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[cpp,doc] PATCH for Re: CPP documentation minor typo
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Bogdan Harjoc <harjoc at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 2 Apr 2018 18:04:25 +0200 (CEST)
- Subject: [cpp,doc] PATCH for Re: CPP documentation minor typo
- References: <CAF4+tmrVC_HEABreSVx3kH=keKhgSwWFJcPaZPy1KLOz4=6FvA@mail.gmail.com>
On Tue, 20 Feb 2018, Bogdan Harjoc wrote:
> __VA_OPT__ was documented after 7.3.0 and the eprintf example for it
> ends with two backslashes instead of one:
>
> https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html
Thank you for reporting this, Bogdan.
I just fixed this per the patch below.
Gerald
2018-04-02 Gerald Pfeifer <gerald@pfeifer.com>
* doc/cpp.texi (Variadic Macros): Fix line continuation in an
example.
Index: doc/cpp.texi
===================================================================
--- doc/cpp.texi (revision 259011)
+++ doc/cpp.texi (working copy)
@@ -1710,7 +1710,7 @@
not have any tokens, the @code{@w{__VA_OPT__}} expands to nothing:
@smallexample
-#define eprintf(format, @dots{}) \\
+#define eprintf(format, @dots{}) \
fprintf (stderr, format __VA_OPT__(,) __VA_ARGS__)
@end smallexample