From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [C source] Inconsistent comments on preprocessor conditionals Date: Fri, 08 Jul 2022 17:01:01 +0300 Message-ID: <83v8s73dr6.fsf@gnu.org> References: <87sfnb3h5m.fsf@disroot.org> <8335fb4vc7.fsf@gnu.org> <6feb2ce2c5e249b74e836edd3ba0c7a0@webmail.orcon.net.nz> <83y1x33eum.fsf@gnu.org> <875yk73e12.fsf@disroot.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17718"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, emacs-devel@gnu.org To: Akib Azmain Turja Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 08 16:11:37 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o9ohk-0004QN-Gq for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jul 2022 16:11:36 +0200 Original-Received: from localhost ([::1]:38922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9ohj-0006cO-IL for ged-emacs-devel@m.gmane-mx.org; Fri, 08 Jul 2022 10:11:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9oXY-0005Ub-J6 for emacs-devel@gnu.org; Fri, 08 Jul 2022 10:01:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9oXW-0003wr-NV; Fri, 08 Jul 2022 10:01:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dVJuid/9JMpczcmhYyjDBLcXMvTdGQrU722Vy4mYpTA=; b=TDYs0ea9iYyk agF8rl4pHEIrcqt/lTlbSICFGri652iYPcEbR1TiswO7O+DHdlVqbYjn5wqQW2aLTiP0gPZmF3nxL I+4b2K4JqoKKuZjgvqysmIwHCywrqIAX77YOow0u3Mhm3FLlIz1E8WDV7+m1fvj1QIKewKrDDY8nv ULlnUYlBODDwks5gA6vIloh0unLwJa+h8pEqiqCsi6fMmZvTkEHb+XhAdpvKJovT8Dfk1hNxA1Yv8 Je4eyK9+9XXgjoOApBnizvFSYvGMPS8dO1dw3+rc7oQ9mGb+JQvb320jsgkv8gusTbgSKZ/vVNqKB wCO9V7rSW7z3klTrKmBYZQ==; Original-Received: from [87.69.77.57] (port=3293 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9oXV-0005PY-Ak; Fri, 08 Jul 2022 10:01:01 -0400 In-Reply-To: <875yk73e12.fsf@disroot.org> (message from Akib Azmain Turja on Fri, 08 Jul 2022 19:55:05 +0600) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291970 Archived-At: > From: Akib Azmain Turja > Cc: emacs-devel@gnu.org > Date: Fri, 08 Jul 2022 19:55:05 +0600 > > >> The "#endif /* not FOO */" version provides the extra information that > >> there *is* an "#else" clause > > > > No, it doesn't, because the conditional could start with #ifndef > > instead. > > Then we can do like the following: > > --8<---------------cut here---------------start------------->8--- > #ifndef FOO > ... > #else /* not !FOO */ > ... > #endif /* not !FOO */ > --8<---------------cut here---------------end--------------->8--- > > Very confusing though. Exactly. Which is why we won't do that.