Go to file
Jon TURNEY e3cfeb949a hw/xwin: printf format fixes for WPARAM and LPARAM types
Some Win32 API types are different fundamental types in the 32-bit and 64-bit

This problem is then further compounded by the fact that whilst both 32-bit
Cygwin and 32-bit MinGW use the ILP32 data model, 64-bit MinGW uses the LLP64
data model, but 64-bit Cygwin uses the LP64 data model.

This makes it impossible to write printf format specifiers which are correct for
all those targets, so we use some macros to provide the correct specifier for
the target.

LPARAM and WPARAM are integer types which can contain a pointer

LPARAM is long in ILP32 and long long in LLP64
WPARAM is unsigned int in ILP32 and unsigned long long in LLP64

Generally, these are just used to passs integer parameters, so for simplicity,
cast to int and use an int-compatible format

In the specific case of WM_CHANGECBCHAIN, they are used to pass HWND, so cast to
that type and print using an appropriate format.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2015-07-07 16:52:50 +01:00
composite Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
config config: remove 10-evdev.conf, let the evdev driver install that file 2015-05-18 13:41:09 +10:00
damageext Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
dbe Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
dix cursor: drop ARGB_CURSOR 2015-06-30 12:17:51 +10:00
doc Remove remaining doc references to Xalloc, Xrealloc, and Xfree 2015-04-21 16:57:07 -07:00
dri3 dri3: unvalidated lengths in DRI3 extension swapped procs [CVE-2014-8103 1/2] 2014-12-08 18:09:48 -08:00
exa Convert exa & fb to new *allocarray functions 2015-04-21 16:58:07 -07:00
fb Convert exa & fb to new *allocarray functions 2015-04-21 16:58:07 -07:00
glamor Instead of one glTexSubImage2D call for each glyph. 2015-07-06 18:45:51 -07:00
glx Revert "glx/dri2: Disable AIGLX if indirect GLX is disabled" 2015-05-14 21:29:40 -07:00
hw hw/xwin: printf format fixes for WPARAM and LPARAM types 2015-07-07 16:52:50 +01:00
include glamor: add support for allocating linear buffers (v2) 2015-06-30 12:17:55 +10:00
m4 configure.ac: remove remaining TLS references 2015-03-24 17:20:26 +00:00
man Add -iglx & +iglx to Xserver.man 2014-11-30 11:32:21 -08:00
mi mi: fix typo in warning about overflowing queue 2015-07-06 16:08:08 -07:00
miext Convert mi & miext to new *allocarray functions 2015-04-21 16:58:08 -07:00
os backtrace.c: Fix word cast to a pointer 2015-05-26 14:35:55 -07:00
present present: Copy unflip contents back to the Screen Pixmap 2015-05-26 15:09:32 -07:00
pseudoramiX Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
randr Merge remote-tracking branch 'evelikov/master' 2015-05-11 16:50:43 -07:00
record Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
render Convert top level extensions to new *allocarray functions 2015-04-21 16:57:08 -07:00
test test: add tests for new valuator mask features 2015-05-20 12:44:58 +10:00
Xext xace: Add XaceHookIsSet helper function 2015-06-10 14:14:25 +10:00
xfixes cursor: drop ARGB_CURSOR 2015-06-30 12:17:51 +10:00
Xi Xi: call UpdateDeviceState() even when the client is missing 2015-06-18 07:30:39 +10:00
xkb Convert XKB to new *allocarray functions 2015-04-21 16:57:54 -07:00
.dir-locals.el Add .dir-locals.el 2013-08-17 12:17:36 +02:00
.gitignore .gitignore: Add new autotools file 'test-driver' 2014-04-21 13:41:42 -07:00
autogen.sh autogen.sh: use quoted string variables 2015-03-13 12:31:21 +10:00
configure.ac Merge remote-tracking branch 'airlied/for-keithp' 2015-06-29 21:04:53 -07:00
COPYING modesetting: Merge modesetting's COPYING into the xserver's. 2014-09-15 12:46:02 -07:00
devbook.am doc: Create a script to filter xmlto output 2015-01-05 14:24:06 -08:00
docbook.am docbook.am: embed css styles inside the HTML HEAD element 2011-09-21 14:07:49 -07:00
fix-miregion Change region implementation names to eliminate the 'mi' prefix 2010-06-05 17:47:32 -07:00
fix-miregion-private Change region implementation names to eliminate the 'mi' prefix 2010-06-05 17:47:32 -07:00
fix-patch-whitespace Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
fix-region Rename region macros to eliminate screen argument 2010-06-05 18:59:00 -07:00
Makefile.am DIST_SUBDIRS needs to include glamor, even if it isn't built 2014-02-13 15:25:56 -08:00
manpages.am Xorg: Add a suid root wrapper 2014-03-12 08:50:05 +01:00
README packaging: provide a default README file #24206 2010-01-27 14:00:17 -08:00
xorg-server.m4 macros: clarify documentation 2012-11-05 13:24:57 -06:00
xorg-server.pc.in xfree86: link modules against Xorg symbols on Cygwin 2012-04-05 21:57:07 -05:00
xserver.ent.in doc: relocate xserver.ent in the package root directory 2011-05-14 11:22:26 -07:00

					X Server

The X server accepts requests from client applications to create windows,
which are (normally rectangular) "virtual screens" that the client program
can draw into.

Windows are then composed on the actual screen by the X server
(or by a separate composite manager) as directed by the window manager,
which usually communicates with the user via graphical controls such as buttons
and draggable titlebars and borders.

For a comprehensive overview of X Server and X Window System, consult the
following article:
http://en.wikipedia.org/wiki/X_server

All questions regarding this software should be directed at the
Xorg mailing list:

        http://lists.freedesktop.org/mailman/listinfo/xorg

Please submit bug reports to the Xorg bugzilla:

        https://bugs.freedesktop.org/enter_bug.cgi?product=xorg

The master development code repository can be found at:

        git://anongit.freedesktop.org/git/xorg/xserver

        http://cgit.freedesktop.org/xorg/xserver

For patch submission instructions, see:

	http://www.x.org/wiki/Development/Documentation/SubmittingPatches

For more information on the git code manager, see:

        http://wiki.x.org/wiki/GitPage