diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-12-12 15:04:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-12-12 15:04:40 (GMT) |
commit | 8a2a7048cdd2634f9cf9e79154c430c67f0c2543 (patch) | |
tree | d6ffd1bbcc1629c18e5f1ec0764560bb0811afa6 /xlib | |
parent | 41c09d4eae90dcdf6a7e1e4a026ba320356e500a (diff) | |
download | tk-8a2a7048cdd2634f9cf9e79154c430c67f0c2543.zip tk-8a2a7048cdd2634f9cf9e79154c430c67f0c2543.tar.gz tk-8a2a7048cdd2634f9cf9e79154c430c67f0c2543.tar.bz2 |
Update to latest X11 headers
Diffstat (limited to 'xlib')
-rw-r--r-- | xlib/X11/Sunkeysym.h | 2 | ||||
-rw-r--r-- | xlib/X11/Xfuncproto.h | 13 | ||||
-rw-r--r-- | xlib/X11/Xutil.h | 23 | ||||
-rw-r--r-- | xlib/X11/keysymdef.h | 16 |
4 files changed, 33 insertions, 21 deletions
diff --git a/xlib/X11/Sunkeysym.h b/xlib/X11/Sunkeysym.h index 78d1286..149740b 100644 --- a/xlib/X11/Sunkeysym.h +++ b/xlib/X11/Sunkeysym.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1991, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1991, Oracle and/or its affiliates. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/xlib/X11/Xfuncproto.h b/xlib/X11/Xfuncproto.h index f689073..f78415e 100644 --- a/xlib/X11/Xfuncproto.h +++ b/xlib/X11/Xfuncproto.h @@ -163,19 +163,6 @@ in this Software without prior written authorization from The Open Group. # define _X_ATTRIBUTE_PRINTF(x,y) #endif -/* requires xproto >= 7.0.22 - since this uses either gcc or C99 variable - argument macros, must be only used inside #ifdef _X_NONNULL guards, as - many legacy X clients are compiled in C89 mode still. */ -#if __has_attribute(nonnull) \ - && defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */ -#define _X_NONNULL(...) __attribute__((nonnull(__VA_ARGS__))) -#elif __has_attribute(nonnull) \ - || defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303) -#define _X_NONNULL(args...) __attribute__((nonnull(args))) -#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ - 0 >= 199901L) /* C99 */ -#define _X_NONNULL(...) /* */ -#endif - /* requires xproto >= 7.0.22 */ #if __has_attribute(__unused__) \ || defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 205) diff --git a/xlib/X11/Xutil.h b/xlib/X11/Xutil.h index f377e2b..dbeeee9 100644 --- a/xlib/X11/Xutil.h +++ b/xlib/X11/Xutil.h @@ -408,11 +408,11 @@ extern int XDestroyRegion( Region /* r */ ); -extern int XEmptyRegion( +extern Bool XEmptyRegion( Region /* r */ ); -extern int XEqualRegion( +extern Bool XEqualRegion( Region /* r1 */, Region /* r2 */ ); @@ -472,6 +472,13 @@ extern Status XGetTextProperty( Atom /* property */ ); +extern XVisualInfo *XGetVisualInfo( + Display* /* display */, + long /* vinfo_mask */, + XVisualInfo* /* vinfo_template */, + int* /* nitems_return */ +); + extern Status XGetWMClientMachine( Display* /* display */, Window /* w */, @@ -629,6 +636,12 @@ extern void XSetTextProperty( Atom /* property */ ); +extern void XSetWMClientMachine( + Display* /* display */, + Window /* w */, + XTextProperty* /* text_prop */ +); + extern int XSetWMHints( Display* /* display */, Window /* w */, @@ -721,6 +734,12 @@ extern int XShrinkRegion( int /* dy */ ); +extern Status XStringListToTextProperty( + char** /* list */, + int /* count */, + XTextProperty* /* text_prop_return */ +); + extern int XSubtractRegion( Region /* sra */, Region /* srb */, diff --git a/xlib/X11/keysymdef.h b/xlib/X11/keysymdef.h index 31110e0..d7d738f 100644 --- a/xlib/X11/keysymdef.h +++ b/xlib/X11/keysymdef.h @@ -437,8 +437,10 @@ SOFTWARE. #define XK_dead_O 0xfe87 #define XK_dead_u 0xfe88 #define XK_dead_U 0xfe89 -#define XK_dead_small_schwa 0xfe8a -#define XK_dead_capital_schwa 0xfe8b +#define XK_dead_schwa 0xfe8a +#define XK_dead_SCHWA 0xfe8b +#define XK_dead_small_schwa 0xfe8a /* deprecated, remove in 2025 */ +#define XK_dead_capital_schwa 0xfe8b /* deprecated, remove in 2025 */ #define XK_dead_greek 0xfe8c @@ -656,7 +658,8 @@ SOFTWARE. #define XK_diaeresis 0x00a8 /* U+00A8 DIAERESIS */ #define XK_copyright 0x00a9 /* U+00A9 COPYRIGHT SIGN */ #define XK_ordfeminine 0x00aa /* U+00AA FEMININE ORDINAL INDICATOR */ -#define XK_guillemotleft 0x00ab /* U+00AB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK */ +#define XK_guillemetleft 0x00ab /* U+00AB LEFT-POINTING DOUBLE ANGLE QUOTATION MARK */ +#define XK_guillemotleft 0x00ab /* deprecated misspelling */ #define XK_notsign 0x00ac /* U+00AC NOT SIGN */ #define XK_hyphen 0x00ad /* U+00AD SOFT HYPHEN */ #define XK_registered 0x00ae /* U+00AE REGISTERED SIGN */ @@ -671,8 +674,10 @@ SOFTWARE. #define XK_periodcentered 0x00b7 /* U+00B7 MIDDLE DOT */ #define XK_cedilla 0x00b8 /* U+00B8 CEDILLA */ #define XK_onesuperior 0x00b9 /* U+00B9 SUPERSCRIPT ONE */ -#define XK_masculine 0x00ba /* U+00BA MASCULINE ORDINAL INDICATOR */ -#define XK_guillemotright 0x00bb /* U+00BB RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK */ +#define XK_ordmasculine 0x00ba /* U+00BA MASCULINE ORDINAL INDICATOR */ +#define XK_masculine 0x00ba /* deprecated inconsistent name */ +#define XK_guillemetright 0x00bb /* U+00BB RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK */ +#define XK_guillemotright 0x00bb /* deprecated misspelling */ #define XK_onequarter 0x00bc /* U+00BC VULGAR FRACTION ONE QUARTER */ #define XK_onehalf 0x00bd /* U+00BD VULGAR FRACTION ONE HALF */ #define XK_threequarters 0x00be /* U+00BE VULGAR FRACTION THREE QUARTERS */ @@ -737,6 +742,7 @@ SOFTWARE. #define XK_odiaeresis 0x00f6 /* U+00F6 LATIN SMALL LETTER O WITH DIAERESIS */ #define XK_division 0x00f7 /* U+00F7 DIVISION SIGN */ #define XK_oslash 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */ +#define XK_ooblique 0x00f8 /* U+00F8 LATIN SMALL LETTER O WITH STROKE */ #define XK_ugrave 0x00f9 /* U+00F9 LATIN SMALL LETTER U WITH GRAVE */ #define XK_uacute 0x00fa /* U+00FA LATIN SMALL LETTER U WITH ACUTE */ #define XK_ucircumflex 0x00fb /* U+00FB LATIN SMALL LETTER U WITH CIRCUMFLEX */ |