All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: dri-devel@lists.sourceforge.net
Cc: Eric Anholt <anholt@kemper.freedesktop.org>
Subject: Re: drm: Branch 'master'
Date: Fri, 27 Aug 2010 11:26:59 +0200	[thread overview]
Message-ID: <4C7784E3.3010304@redhat.com> (raw)
In-Reply-To: <20100826225059.5C5EB10057@kemper.freedesktop.org>

Dne 27.8.2010 00:50, Eric Anholt napsal(a):
>  include/drm/drm.h    |    4 ++++
>  intel/intel_bufmgr.h |    6 +++++-
>  2 files changed, 9 insertions(+), 1 deletion(-)
> 
> New commits:
> commit 23287f05cf2443ddf9e028e29beb5bd30979c6cf
> Author: Eric Anholt <eric@anholt.net>
> Date:   Thu Aug 26 15:39:28 2010 -0700
> 
>     Avoid use of c++ reserved keyword "virtual" when using a C++ compiler.
>     
>     Avoids requiring nasty hacks around libdrm headers in the new C++
>     parts of Mesa drivers.
> 
> diff --git a/include/drm/drm.h b/include/drm/drm.h
> index a0559eb..2ba7136 100644
> --- a/include/drm/drm.h
> +++ b/include/drm/drm.h
> @@ -373,7 +373,11 @@ struct drm_buf_pub {
>   */
>  struct drm_buf_map {
>  	int count;		/**< Length of the buffer list */
> +#ifdef __cplusplus
> +	void *virt;
> +#else
>  	void *virtual;		/**< Mmap'd area in user-virtual */
> +#endif
>  	struct drm_buf_pub *list;	/**< Buffer information */
>  };


Quit weird patch....

Why keeping different name for C++ and C ?

Why not simply use i.e.:

     void*  user_virtual;

Or something similar - and avoid using these rather useless ifdefs ?

Zdenek

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
--

       reply	other threads:[~2010-08-27  9:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20100826225059.5C5EB10057@kemper.freedesktop.org>
2010-08-27  9:26 ` Zdenek Kabelac [this message]
2010-08-27 10:02   ` drm: Branch 'master' Julien Cristau
2010-08-27 11:16     ` Zdenek Kabelac
2010-08-28  3:55       ` Eric Anholt
2010-08-31 10:17         ` Zdenek Kabelac
2010-09-01  0:53           ` Eric Anholt
2010-09-10 14:02             ` Zdenek Kabelac
     [not found] <20180330025101.049EB76143@kemper.freedesktop.org>
2018-04-05 16:29 ` Michel Dänzer
     [not found] <20100209083805.48EFA10051@kemper.freedesktop.org>
2010-02-09 10:59 ` Eric Anholt

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=4C7784E3.3010304@redhat.com \
    --to=zkabelac@redhat.com \
    --cc=anholt@kemper.freedesktop.org \
    --cc=dri-devel@lists.sourceforge.net \
    /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.