From: "Hans-Bernhard Bröker" <HBBroeker@t-online.de>
To: cygwin@cygwin.com
Subject: Re: lint kills _Noreturn
Date: Mon, 30 May 2016 21:57:00 -0000 [thread overview]
Message-ID: <69fb49df-0c48-408e-b21b-924a3217becc@t-online.de> (raw)
In-Reply-To: <20160530084454.GF12694@calimero.vinschen.de>
Am 30.05.2016 um 10:44 schrieb Corinna Vinschen:
> Our cdefs.h is taken almost verbatim from FreeBSD, and FreeBSD's
> cdefs.h uses the exact same expressions chcking for lint.
That means almost nothing. The BSD guy might have a good,
platform-specific reason to assign a specific meaning to the macro
"lint" that's buried in their history, and doesn't even apply to Cygwin.
And of course like everybody else, they could simply have got it wrong.
> Don't set lint.
It's not that simple.
On the one hand the global name "lint" is clearly in the user's name
space. If an implementation wants to use a macro that means something
special, and which user code is not supposed to meddle with, that's what
the language has reserved name space patterns for (it should then be
__lint or __LINT).
OTOH the original lint, although it's a tool that's used to check for
violations of such rules among others, unfortunately used to violate
those same rules by predefining a global macro "lint", and existing code
still relies on that property to hide non-standard constructs like that
_Noreturn from lint.
Disappointingly the more modern implementations of lint still get this
wrong, or at least not quite right, in different ways: splint documents
"S_SPLINT_S", which at least looks like a macro, but is still in user
namespace. Gimpel's ones have "_lint", which is better than "lint", but
should really be "__lint".
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
next prev parent reply other threads:[~2016-05-30 16:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-29 17:21 Ken Brown
2016-05-29 19:09 ` Ken Brown
2016-05-29 19:28 ` Andy Moreton
2016-05-29 22:24 ` Ken Brown
2016-05-29 22:51 ` Ken Brown
2016-05-30 7:19 ` Andy Moreton
2016-05-30 8:25 ` Ken Brown
2016-05-30 10:35 ` Corinna Vinschen
2016-05-30 21:57 ` Hans-Bernhard Bröker [this message]
2016-05-31 9:35 ` Ken Brown
2016-05-31 9:41 ` Ken Brown
2016-05-31 17:03 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=69fb49df-0c48-408e-b21b-924a3217becc@t-online.de \
--to=hbbroeker@t-online.de \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).