From: Don Slutz <dslutz@verizon.com>
To: Tim Deegan <tim@xen.org>, Razvan Cojocaru <rcojocaru@bitdefender.com>
Cc: Jan Beulich <JBeulich@suse.com>, xen-devel@lists.xen.org
Subject: Re: [PATCH v2] RFC: Automatically check xen's public headers for C++ pitfalls.
Date: Thu, 26 Feb 2015 15:31:06 -0500 [thread overview]
Message-ID: <54EF828A.9080201@terremark.com> (raw)
In-Reply-To: <20150226192203.GA80992@deinos.phlegethon.org>
On 02/26/15 14:22, Tim Deegan wrote:
> At 19:49 +0200 on 26 Feb (1424976562), Razvan Cojocaru wrote:
>> On 02/26/2015 07:01 PM, Tim Deegan wrote:
>>> +#ifdef __cplusplus
>>> +/* 'private' is a keyword in C++, so we have to use a different name for
>>> + * private state there. Leaving the C name alone to avoid unnecessary
>>> + * pain for the existing users. */
>>> +#define XEN_RING_PRIVATE pvt
>>> +#else
>>> +#define XEN_RING_PRIVATE private
>>> +#endif
>>
>> Are there likely to be many users outside of the ones using that code
>> with mem_event?
>
> Yes, lots. It's used to implement split drivers for net, block, etc.
> Most users will have taken copies of this header into their own trees,
> though, and so won't face build breakage, and this isn't an ABI change.
>
> So far, I've seen David and Andrew in favour of just changing the
> field's name and letting out-of-tree users update their copies when/if
> they want to. Jan would prefer to avoid changing the field name for C
> users. I'm not delighted with any of these options but I think this
> ifdeffery is worse than the others. :)
>
> Let's see what anyone else has to say.
>
Since I am one of the user of C++ and Xen headers, I like this a lot.
I do not like the ifdeffery above. I am in favour of just changing the
the field's name.
-Don Slutz
> Cheers,
>
> Tim.
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
next prev parent reply other threads:[~2015-02-26 20:31 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 13:11 [PATCH] RFC: Make xen's public headers a little friendlier for C++ Tim Deegan
2015-02-26 14:09 ` Jan Beulich
2015-02-26 15:22 ` Tim Deegan
2015-02-26 15:39 ` Jan Beulich
2015-02-26 16:11 ` [PATCH v2] RFC: Automatically check xen's public headers for C++ pitfalls Tim Deegan
2015-02-26 16:28 ` Tim Deegan
2015-02-26 16:43 ` Andrew Cooper
2015-02-26 16:47 ` Jan Beulich
2015-02-26 17:01 ` Tim Deegan
2015-02-26 17:49 ` Razvan Cojocaru
2015-02-26 19:22 ` Tim Deegan
2015-02-26 20:31 ` Don Slutz [this message]
2015-02-27 8:00 ` Jan Beulich
2015-02-26 16:49 ` David Vrabel
2015-03-05 11:25 ` Tim Deegan
2015-03-05 11:35 ` Ian Campbell
2015-03-05 11:41 ` Jan Beulich
2015-03-05 11:55 ` Ian Campbell
2015-03-05 12:13 ` Wei Liu
2015-03-05 12:34 ` Ian Campbell
2015-03-05 12:16 ` Tim Deegan
2015-03-12 10:03 ` Tim Deegan
2015-03-12 10:14 ` Ian Campbell
2015-03-12 11:16 ` Tim Deegan
2015-03-12 10:57 ` Jan Beulich
2015-02-26 16:24 ` [PATCH v3] " Tim Deegan
2015-02-26 20:28 ` Don Slutz
2015-02-27 10:05 ` Tim Deegan
2015-02-27 8:36 ` Jan Beulich
2015-02-27 9:22 ` Tim Deegan
2015-02-27 9:34 ` Jan Beulich
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=54EF828A.9080201@terremark.com \
--to=dslutz@verizon.com \
--cc=JBeulich@suse.com \
--cc=rcojocaru@bitdefender.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.