* CPP documentation minor typo
@ 2018-02-20 9:32 Bogdan Harjoc
2018-04-02 16:04 ` [cpp,doc] PATCH for " Gerald Pfeifer
0 siblings, 1 reply; 2+ messages in thread
From: Bogdan Harjoc @ 2018-02-20 9:32 UTC (permalink / raw)
To: gcc
__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
Regards,
Bogdan
^ permalink raw reply [flat|nested] 2+ messages in thread
* [cpp,doc] PATCH for Re: CPP documentation minor typo
2018-02-20 9:32 CPP documentation minor typo Bogdan Harjoc
@ 2018-04-02 16:04 ` Gerald Pfeifer
0 siblings, 0 replies; 2+ messages in thread
From: Gerald Pfeifer @ 2018-04-02 16:04 UTC (permalink / raw)
To: Bogdan Harjoc, gcc-patches; +Cc: gcc
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-02 16:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-20 9:32 CPP documentation minor typo Bogdan Harjoc
2018-04-02 16:04 ` [cpp,doc] PATCH for " Gerald Pfeifer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).