public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-proto/inputproto/files: 0002-Typo-fix.patch 0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch
@ 2009-11-22 23:50 Tomas Chvatal (scarabeus)
  0 siblings, 0 replies; 2+ messages in thread
From: Tomas Chvatal (scarabeus) @ 2009-11-22 23:50 UTC (permalink / raw
  To: gentoo-commits

scarabeus    09/11/22 23:50:30

  Removed:              0002-Typo-fix.patch
                        0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch
  Log:
  Drop stale patches.
  (Portage version: 2.2_rc51/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in x11-proto/inputproto/files: 0002-Typo-fix.patch 0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch
@ 2008-03-12  3:50 Donnie Berkholz (dberkholz)
  0 siblings, 0 replies; 2+ messages in thread
From: Donnie Berkholz (dberkholz) @ 2008-03-12  3:50 UTC (permalink / raw
  To: gentoo-commits

dberkholz    08/03/12 03:50:28

  Added:                0002-Typo-fix.patch
                        0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch
  Log:
  (#213052) Fix incompatibility with qt -- INT32 definition conflict.
  (Portage version: 2.1.4.4)

Revision  Changes    Path
1.1                  x11-proto/inputproto/files/0002-Typo-fix.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-proto/inputproto/files/0002-Typo-fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-proto/inputproto/files/0002-Typo-fix.patch?rev=1.1&content-type=text/plain

Index: 0002-Typo-fix.patch
===================================================================
From 852568991b251e9366da167f1b746a0a1db6adf0 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Mon, 10 Mar 2008 09:31:51 -0400
Subject: [PATCH] Typo fix.

---
 XI.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/XI.h b/XI.h
index ec9bee2..3b11860 100644
--- a/XI.h
+++ b/XI.h
@@ -49,6 +49,8 @@ SOFTWARE.
 #ifndef _XI_H_
 #define _XI_H_
 
+#define sz_xGetExtensionVersionReq             8
+#define sz_xGetExtensionVersionReply           32
 #define sz_xListInputDevicesReq			4
 #define sz_xListInputDevicesReply		32
 #define sz_xOpenDeviceReq			8
-- 
1.5.4.3




1.1                  x11-proto/inputproto/files/0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-proto/inputproto/files/0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-proto/inputproto/files/0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch?rev=1.1&content-type=text/plain

Index: 0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch
===================================================================
From b5cbe2d93f6c0129b8f29da97778f6d1b15c38f9 Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Mon, 10 Mar 2008 09:08:21 -0400
Subject: [PATCH] C sucks: define XEventClass in terms of unsigned int, not CARD32.

Apparently pulling in Xmd.h here breaks qt, since they both define an
INT32 type (and incompatible ones even, since Xmd's is unsigned long on
ILP32 because whoever wrote Xmd.h is a C novice).
---
 XI.h |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/XI.h b/XI.h
index fe4981a..ec9bee2 100644
--- a/XI.h
+++ b/XI.h
@@ -1,5 +1,3 @@
-/* $Xorg: XI.h,v 1.4 2001/02/09 02:03:23 xorgcvs Exp $ */
-
 /************************************************************
 
 Copyright 1989, 1998  The Open Group
@@ -45,17 +43,12 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 SOFTWARE.
 
 ********************************************************/
-/* $XFree86: xc/include/extensions/XI.h,v 1.4 2001/01/17 17:53:16 dawes Exp $ */
 
 /* Definitions used by the server, library and client */
 
 #ifndef _XI_H_
 #define _XI_H_
 
-#include <X11/Xmd.h> /* CARD32 */
-
-#define sz_xGetExtensionVersionReq		8
-#define sz_xGetExtensionVersionReply		32
 #define sz_xListInputDevicesReq			4
 #define sz_xListInputDevicesReply		32
 #define sz_xOpenDeviceReq			8
@@ -263,12 +256,16 @@ SOFTWARE.
 #define XI_DeviceBusy	3
 #define XI_BadClass	4
 
-/* Make XEventClass be a CARD32 for 64 bit servers.  Don't affect client
+/*
+ * Make XEventClass be a CARD32 for 64 bit servers.  Don't affect client
  * definition of XEventClass since that would be a library interface change.
  * See the top of X.h for more _XSERVER64 magic.
+ *
+ * But, don't actually use the CARD32 type.  We can't get it defined here
+ * without polluting the namespace.
  */
 #ifdef _XSERVER64
-typedef	CARD32		XEventClass;
+typedef unsigned int	XEventClass;
 #else
 typedef	unsigned long	XEventClass;
 #endif
-- 
1.5.4.3




-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-22 23:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-22 23:50 [gentoo-commits] gentoo-x86 commit in x11-proto/inputproto/files: 0002-Typo-fix.patch 0001-C-sucks-define-XEventClass-in-terms-of-unsigned-int.patch Tomas Chvatal (scarabeus)
  -- strict thread matches above, loose matches on Subject: below --
2008-03-12  3:50 Donnie Berkholz (dberkholz)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox