From: Johannes Berg <johannes@sipsolutions.net>
To: Josh Triplett <josh@joshtriplett.org>
Cc: Christopher Li <sparse@chrisli.org>,
Pekka Enberg <penberg@cs.helsinki.fi>,
linux-sparse@vger.kernel.org
Subject: Re: [PATCH] sparse: Add GCC pre-defined macros for user-space
Date: Sun, 16 Aug 2009 21:34:31 +0200 [thread overview]
Message-ID: <1250451271.11216.0.camel@johannes.local> (raw)
In-Reply-To: <20090816185608.GA7806@feather>
[-- Attachment #1: Type: text/plain, Size: 690 bytes --]
On Sun, 2009-08-16 at 11:56 -0700, Josh Triplett wrote:
> > The linux kernel has a STRING macro. I will rename to match
> > that if nobody objects.
>
> Matching Linux seems sensible, but I don't see that macro in any general
> code, just a bunch of local defines with various names. A few quick
> greps on current git master turned up at least:
> So, I don't see any particular consistency here that we can follow, other than
> that the macro should probably have "str" in it somewhere. :) And if we have
> to choose, I think STRINGIFY seems more descriptive than just STRING.
There's include/linux/stringify.h that all those instances you found
could use.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2009-08-16 19:34 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-15 14:57 [PATCH] sparse: Add GCC pre-defined macros for user-space Pekka Enberg
2009-08-15 19:36 ` Christopher Li
2009-08-15 20:26 ` Pekka Enberg
2009-08-15 22:36 ` Josh Triplett
2009-08-16 7:03 ` Pekka Enberg
2009-08-16 10:51 ` Josh Triplett
2009-08-16 11:05 ` Pekka Enberg
2009-08-16 12:41 ` Josh Triplett
2009-08-16 17:50 ` Christopher Li
2009-08-16 18:56 ` Josh Triplett
2009-08-16 19:34 ` Johannes Berg [this message]
2009-08-16 20:00 ` Josh Triplett
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=1250451271.11216.0.camel@johannes.local \
--to=johannes@sipsolutions.net \
--cc=josh@joshtriplett.org \
--cc=linux-sparse@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
--cc=sparse@chrisli.org \
/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 NNTP newsgroup(s).