From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102627 invoked by alias); 2 Apr 2018 16:04:32 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 102609 invoked by uid 89); 2 Apr 2018 16:04:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=backslashes X-Spam-User: qpsmtpd, 2 recipients X-HELO: ainaz.pair.com Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Apr 2018 16:04:30 +0000 Received: from ainaz.pair.com (localhost [127.0.0.1]) by ainaz.pair.com (Postfix) with ESMTP id F2BA23F476; Mon, 2 Apr 2018 12:04:28 -0400 (EDT) Received: from anthias (vie-188-118-240-174.dsl.sil.at [188.118.240.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id E53503F426; Mon, 2 Apr 2018 12:04:27 -0400 (EDT) Date: Mon, 02 Apr 2018 16:04:00 -0000 From: Gerald Pfeifer To: Bogdan Harjoc , gcc-patches@gcc.gnu.org cc: gcc@gcc.gnu.org Subject: [cpp,doc] PATCH for Re: CPP documentation minor typo In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00017.txt.bz2 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 * 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