summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-11 11:40:07 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-11 11:40:07 (GMT)
commitc28292a3923e7c09df16322a73d4b53eaff74b79 (patch)
treeeeb37dcb2087a7980c744dcc19b07bfc396caf44
parentc24b589a6b793f5112cd11f613af9aa7ae10b55f (diff)
downloadtk-c28292a3923e7c09df16322a73d4b53eaff74b79.zip
tk-c28292a3923e7c09df16322a73d4b53eaff74b79.tar.gz
tk-c28292a3923e7c09df16322a73d4b53eaff74b79.tar.bz2
Add 3 more stub entries to MacOSX X11 stub table, which win32 already has: XDestroyIC(), XCreatePixmapCursor(), XCreateGlyphCursor()
-rw-r--r--generic/tkInt.decls12
-rw-r--r--generic/tkIntXlibDecls.h28
-rw-r--r--generic/tkStubInit.c6
-rw-r--r--win/stubs.c224
-rw-r--r--xlib/xgc.c382
5 files changed, 571 insertions, 81 deletions
diff --git a/generic/tkInt.decls b/generic/tkInt.decls
index 37557f5..14ab250 100644
--- a/generic/tkInt.decls
+++ b/generic/tkInt.decls
@@ -1852,6 +1852,18 @@ declare 137 aqua {
int sx, int sy, int dx, int dy,
unsigned int w, unsigned int h)
}
+declare 144 aqua {
+ void XDestroyIC(XIC xic)
+}
+declare 145 aqua {
+ Cursor XCreatePixmapCursor(Display *d, Pixmap p1, Pixmap p2,
+ XColor *x1, XColor *x2, unsigned int ui1, unsigned int ui2)
+}
+declare 146 aqua {
+ Cursor XCreateGlyphCursor(Display *d, Font f1, Font f2,
+ unsigned int ui1, unsigned int ui2, XColor _Xconst *x1,
+ XColor _Xconst *x2)
+}
declare 158 aqua {
void TkUnusedStubEntry(void)
}
diff --git a/generic/tkIntXlibDecls.h b/generic/tkIntXlibDecls.h
index 7626d9d..7c5d815 100644
--- a/generic/tkIntXlibDecls.h
+++ b/generic/tkIntXlibDecls.h
@@ -762,9 +762,16 @@ EXTERN int XPutImage(Display *d, Drawable dr, GC gc, XImage *im,
/* Slot 141 is reserved */
/* Slot 142 is reserved */
/* Slot 143 is reserved */
-/* Slot 144 is reserved */
-/* Slot 145 is reserved */
-/* Slot 146 is reserved */
+/* 144 */
+EXTERN void XDestroyIC(XIC xic);
+/* 145 */
+EXTERN Cursor XCreatePixmapCursor(Display *d, Pixmap p1, Pixmap p2,
+ XColor *x1, XColor *x2, unsigned int ui1,
+ unsigned int ui2);
+/* 146 */
+EXTERN Cursor XCreateGlyphCursor(Display *d, Font f1, Font f2,
+ unsigned int ui1, unsigned int ui2,
+ XColor _Xconst *x1, XColor _Xconst *x2);
/* Slot 147 is reserved */
/* Slot 148 is reserved */
/* Slot 149 is reserved */
@@ -1090,9 +1097,9 @@ typedef struct TkIntXlibStubs {
void (*reserved141)(void);
void (*reserved142)(void);
void (*reserved143)(void);
- void (*reserved144)(void);
- void (*reserved145)(void);
- void (*reserved146)(void);
+ void (*xDestroyIC) (XIC xic); /* 144 */
+ Cursor (*xCreatePixmapCursor) (Display *d, Pixmap p1, Pixmap p2, XColor *x1, XColor *x2, unsigned int ui1, unsigned int ui2); /* 145 */
+ Cursor (*xCreateGlyphCursor) (Display *d, Font f1, Font f2, unsigned int ui1, unsigned int ui2, XColor _Xconst *x1, XColor _Xconst *x2); /* 146 */
void (*reserved147)(void);
void (*reserved148)(void);
void (*reserved149)(void);
@@ -1654,9 +1661,12 @@ extern const TkIntXlibStubs *tkIntXlibStubsPtr;
/* Slot 141 is reserved */
/* Slot 142 is reserved */
/* Slot 143 is reserved */
-/* Slot 144 is reserved */
-/* Slot 145 is reserved */
-/* Slot 146 is reserved */
+#define XDestroyIC \
+ (tkIntXlibStubsPtr->xDestroyIC) /* 144 */
+#define XCreatePixmapCursor \
+ (tkIntXlibStubsPtr->xCreatePixmapCursor) /* 145 */
+#define XCreateGlyphCursor \
+ (tkIntXlibStubsPtr->xCreateGlyphCursor) /* 146 */
/* Slot 147 is reserved */
/* Slot 148 is reserved */
/* Slot 149 is reserved */
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c
index 836f1d1..ab8b675 100644
--- a/generic/tkStubInit.c
+++ b/generic/tkStubInit.c
@@ -977,9 +977,9 @@ static const TkIntXlibStubs tkIntXlibStubs = {
0, /* 141 */
0, /* 142 */
0, /* 143 */
- 0, /* 144 */
- 0, /* 145 */
- 0, /* 146 */
+ XDestroyIC, /* 144 */
+ XCreatePixmapCursor, /* 145 */
+ XCreateGlyphCursor, /* 146 */
0, /* 147 */
0, /* 148 */
0, /* 149 */
diff --git a/win/stubs.c b/win/stubs.c
index 884186c..faeac08 100644
--- a/win/stubs.c
+++ b/win/stubs.c
@@ -1,4 +1,4 @@
-#include "tk.h"
+#include "tkInt.h"
/*
* Undocumented Xlib internal function
@@ -8,6 +8,8 @@ int
_XInitImageFuncPtrs(
XImage *image)
{
+ (void)image;
+
return Success;
}
@@ -21,6 +23,9 @@ XSetWMClientMachine(
Window w,
XTextProperty *text_prop)
{
+ (void)display;
+ (void)w;
+ (void)text_prop;
}
Status
@@ -29,7 +34,11 @@ XStringListToTextProperty(
int count,
XTextProperty *text_prop_return)
{
- return (Status) 0;
+ (void)list;
+ (void)count;
+ (void)text_prop_return;
+
+ return Success;
}
/*
@@ -47,54 +56,36 @@ XChangeProperty(
_Xconst unsigned char *data,
int nelements)
{
- return Success;
-}
+ (void)display;
+ (void)w;
+ (void)property;
+ (void)type;
+ (void)format;
+ (void)mode;
+ (void)data;
+ (void)nelements;
-Cursor
-XCreateGlyphCursor(
- Display *display,
- Font source_font,
- Font mask_font,
- unsigned int source_char,
- unsigned int mask_char,
- XColor _Xconst *foreground_color,
- XColor _Xconst *background_color)
-{
- return 1;
+ return Success;
}
XIC
XCreateIC(XIM xim, ...)
{
+ (void)xim;
return NULL;
}
-Cursor
-XCreatePixmapCursor(
- Display *display,
- Pixmap source,
- Pixmap mask,
- XColor *foreground_color,
- XColor *background_color,
- unsigned int x,
- unsigned int y)
-{
- return (Cursor) NULL;
-}
-
int
XDeleteProperty(
Display *display,
Window w,
Atom property)
{
- return Success;
-}
+ (void)display;
+ (void)w;
+ (void)property;
-void
-XDestroyIC(
- XIC ic)
-{
+ return Success;
}
Bool
@@ -102,6 +93,9 @@ XFilterEvent(
XEvent *event,
Window window)
{
+ (void)event;
+ (void)window;
+
return 0;
}
@@ -110,6 +104,9 @@ XForceScreenSaver(
Display *display,
int mode)
{
+ (void)display;
+ (void)mode;
+
return Success;
}
@@ -118,6 +115,9 @@ XFreeCursor(
Display *display,
Cursor cursor)
{
+ (void)display;
+ (void)cursor;
+
return Success;
}
@@ -125,6 +125,8 @@ GContext
XGContextFromGC(
GC gc)
{
+ (void)gc;
+
return (GContext) NULL;
}
@@ -133,6 +135,9 @@ XGetAtomName(
Display *display,
Atom atom)
{
+ (void)display;
+ (void)atom;
+
return NULL;
}
@@ -142,6 +147,10 @@ XGetWindowAttributes(
Window w,
XWindowAttributes *window_attributes_return)
{
+ (void)display;
+ (void)w;
+ (void)window_attributes_return;
+
return Success;
}
@@ -152,7 +161,12 @@ XGetWMColormapWindows(
Window **windows_return,
int *count_return)
{
- return (Status) 0;
+ (void)display;
+ (void)w;
+ (void)windows_return;
+ (void)count_return;
+
+ return Success;
}
int
@@ -161,6 +175,10 @@ XIconifyWindow(
Window w,
int screen_number)
{
+ (void)display;
+ (void)w;
+ (void)screen_number;
+
return Success;
}
@@ -170,6 +188,10 @@ XListHosts(
int *nhosts_return,
Bool *state_return)
{
+ (void)display;
+ (void)nhosts_return;
+ (void)state_return;
+
return NULL;
}
@@ -181,6 +203,12 @@ XLookupColor(
XColor *exact_def_return,
XColor *screen_def_return)
{
+ (void)display;
+ (void)colormap;
+ (void)color_name;
+ (void)exact_def_return;
+ (void)screen_def_return;
+
return Success;
}
@@ -189,6 +217,9 @@ XNextEvent(
Display *display,
XEvent *event_return)
{
+ (void)display;
+ (void)event_return;
+
return Success;
}
@@ -197,6 +228,9 @@ XPutBackEvent(
Display *display,
XEvent *event)
{
+ (void)display;
+ (void)event;
+
return Success;
}
@@ -207,6 +241,11 @@ XQueryColors(
XColor *defs_in_out,
int ncolors)
{
+ (void)display;
+ (void)colormap;
+ (void)defs_in_out;
+ (void)ncolors;
+
return Success;
}
@@ -219,6 +258,13 @@ XQueryTree(
Window **children_return,
unsigned int *nchildren_return)
{
+ (void)display;
+ (void)w;
+ (void)root_return;
+ (void)parent_return;
+ (void)children_return;
+ (void)nchildren_return;
+
return Success;
}
@@ -226,6 +272,8 @@ int
XRefreshKeyboardMapping(
XMappingEvent *event_map)
{
+ (void)event_map;
+
return Success;
}
@@ -234,6 +282,9 @@ XRootWindow(
Display *display,
int screen_number)
{
+ (void)display;
+ (void)screen_number;
+
return (Window) NULL;
}
@@ -243,6 +294,10 @@ XSelectInput(
Window w,
long event_mask)
{
+ (void)display;
+ (void)w;
+ (void)event_mask;
+
return Success;
}
@@ -254,6 +309,12 @@ XSendEvent(
long event_mask,
XEvent *event_send)
{
+ (void)display;
+ (void)w;
+ (void)propagate;
+ (void)event_mask;
+ (void)event_send;
+
return Success;
}
@@ -264,6 +325,11 @@ XSetCommand(
char **argv,
int argc)
{
+ (void)display;
+ (void)w;
+ (void)argv;
+ (void)argc;
+
return Success;
}
@@ -271,6 +337,8 @@ XErrorHandler
XSetErrorHandler(
XErrorHandler handler)
{
+ (void)handler;
+
return NULL;
}
@@ -280,6 +348,10 @@ XSetIconName(
Window w,
_Xconst char *icon_name)
{
+ (void)display;
+ (void)w;
+ (void)icon_name;
+
return Success;
}
@@ -289,6 +361,10 @@ XSetWindowBackground(
Window w,
unsigned long background_pixel)
{
+ (void)display;
+ (void)w;
+ (void)background_pixel;
+
return Success;
}
@@ -298,6 +374,10 @@ XSetWindowBackgroundPixmap(
Window w,
Pixmap background_pixmap)
{
+ (void)display;
+ (void)w;
+ (void)background_pixmap;
+
return Success;
}
@@ -307,6 +387,10 @@ XSetWindowBorder(
Window w,
unsigned long border_pixel)
{
+ (void)display;
+ (void)w;
+ (void)border_pixel;
+
return Success;
}
@@ -316,6 +400,10 @@ XSetWindowBorderPixmap(
Window w,
Pixmap border_pixmap)
{
+ (void)display;
+ (void)w;
+ (void)border_pixmap;
+
return Success;
}
@@ -325,6 +413,10 @@ XSetWindowBorderWidth(
Window w,
unsigned int width)
{
+ (void)display;
+ (void)w;
+ (void)width;
+
return Success;
}
@@ -334,6 +426,10 @@ XSetWindowColormap(
Window w,
Colormap colormap)
{
+ (void)display;
+ (void)w;
+ (void)colormap;
+
return Success;
}
@@ -348,6 +444,15 @@ XTranslateCoordinates(
int *dest_y_return,
Window *child_return)
{
+ (void)display;
+ (void)src_w;
+ (void)dest_w;
+ (void)src_x;
+ (void)src_y;
+ (void)dest_x_return;
+ (void)dest_y_return;
+ (void)child_return;
+
return 0;
}
@@ -358,6 +463,11 @@ XWindowEvent(
long event_mask,
XEvent *event_return)
{
+ (void)display;
+ (void)w;
+ (void)event_mask;
+ (void)event_return;
+
return Success;
}
@@ -367,6 +477,10 @@ XWithdrawWindow(
Window w,
int screen_number)
{
+ (void)display;
+ (void)w;
+ (void)screen_number;
+
return Success;
}
@@ -379,6 +493,13 @@ XmbLookupString(
KeySym *keysym_return,
Status *status_return)
{
+ (void)ic;
+ (void)event;
+ (void)buffer_return;
+ (void)bytes_buffer;
+ (void)keysym_return;
+ (void)status_return;
+
return Success;
}
@@ -389,7 +510,7 @@ XGetWindowProperty(
Atom property,
long long_offset,
long long_length,
- Bool delete,
+ Bool del,
Atom req_type,
Atom *actual_type_return,
int *actual_format_return,
@@ -397,6 +518,14 @@ XGetWindowProperty(
unsigned long *bytes_after_return,
unsigned char **prop_return)
{
+ (void)display;
+ (void)w;
+ (void)property;
+ (void)long_offset;
+ (void)long_length;
+ (void)del;
+ (void)req_type;
+
*actual_type_return = None;
*actual_format_return = 0;
*nitems_return = 0;
@@ -413,6 +542,8 @@ int
XFlush(
Display *display)
{
+ (void)display;
+
return 0;
}
@@ -420,6 +551,8 @@ int
XGrabServer(
Display *display)
{
+ (void)display;
+
return 0;
}
@@ -427,6 +560,8 @@ int
XUngrabServer(
Display *display)
{
+ (void)display;
+
return 0;
}
@@ -453,6 +588,8 @@ XSynchronize(
Display *display,
Bool onoff)
{
+ (void)onoff;
+
display->request++;
return NULL;
}
@@ -462,6 +599,8 @@ XSync(
Display *display,
Bool discard)
{
+ (void)discard;
+
display->request++;
return 0;
}
@@ -472,3 +611,16 @@ XVisualIDFromVisual(
{
return visual->visualid;
}
+
+int
+XOffsetRegion(
+ Region rgn,
+ int dx,
+ int dy)
+{
+ (void)rgn;
+ (void)dx;
+ (void)dy;
+
+ return 0;
+}
diff --git a/xlib/xgc.c b/xlib/xgc.c
index e2fdf52..013ee63 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -51,7 +51,7 @@ static TkpClipMask *AllocClipMask(GC gc) {
TkpClipMask *clip_mask = (TkpClipMask*) gc->clip_mask;
if (clip_mask == NULL) {
- clip_mask = ckalloc(sizeof(TkpClipMask));
+ clip_mask = (TkpClipMask *)ckalloc(sizeof(TkpClipMask));
gc->clip_mask = (Pixmap) clip_mask;
#ifdef MAC_OSX_TK
} else if (clip_mask->type == TKP_CLIP_REGION) {
@@ -84,7 +84,7 @@ static void FreeClipMask(GC gc) {
TkpReleaseRegion(((TkpClipMask*) gc->clip_mask)->value.region);
}
#endif
- ckfree(gc->clip_mask);
+ ckfree((char *)gc->clip_mask);
gc->clip_mask = None;
}
}
@@ -113,6 +113,7 @@ XCreateGC(
XGCValues *values)
{
GC gp;
+ (void)d;
/*
* In order to have room for a dash list, MAX_DASH_LIST_SIZE extra chars
@@ -123,7 +124,7 @@ XCreateGC(
#define MAX_DASH_LIST_SIZE 10
- gp = ckalloc(sizeof(XGCValues) + MAX_DASH_LIST_SIZE + gcCacheSize);
+ gp = (GC)ckalloc(sizeof(XGCValues) + MAX_DASH_LIST_SIZE + gcCacheSize);
if (!gp) {
return NULL;
}
@@ -144,11 +145,11 @@ XCreateGC(
InitField(fill_style, GCFillStyle, FillSolid);
InitField(fill_rule, GCFillRule, WindingRule);
InitField(arc_mode, GCArcMode, ArcPieSlice);
- InitField(tile, GCTile, None);
- InitField(stipple, GCStipple, None);
+ InitField(tile, GCTile, 0);
+ InitField(stipple, GCStipple, 0);
InitField(ts_x_origin, GCTileStipXOrigin, 0);
InitField(ts_y_origin, GCTileStipYOrigin, 0);
- InitField(font, GCFont, None);
+ InitField(font, GCFont, 0);
InitField(subwindow_mode, GCSubwindowMode, ClipByChildren);
InitField(graphics_exposures, GCGraphicsExposures, True);
InitField(clip_x_origin, GCClipXOrigin, 0);
@@ -268,6 +269,8 @@ int XFreeGC(
Display *d,
GC gc)
{
+ (void)d;
+
if (gc != NULL) {
FreeClipMask(gc);
TkpFreeGCCache(gc);
@@ -299,6 +302,8 @@ XSetForeground(
GC gc,
unsigned long foreground)
{
+ (void)display;
+
gc->foreground = foreground;
return Success;
}
@@ -309,6 +314,8 @@ XSetBackground(
GC gc,
unsigned long background)
{
+ (void)display;
+
gc->background = background;
return Success;
}
@@ -322,6 +329,7 @@ XSetDashes(
int n)
{
char *p = &(gc->dashes);
+ (void)display;
#ifdef TkWinDeleteBrush
TkWinDeleteBrush(gc->fgBrush);
@@ -344,6 +352,8 @@ XSetFunction(
GC gc,
int function)
{
+ (void)display;
+
gc->function = function;
return Success;
}
@@ -354,6 +364,8 @@ XSetFillRule(
GC gc,
int fill_rule)
{
+ (void)display;
+
gc->fill_rule = fill_rule;
return Success;
}
@@ -364,6 +376,8 @@ XSetFillStyle(
GC gc,
int fill_style)
{
+ (void)display;
+
gc->fill_style = fill_style;
return Success;
}
@@ -374,6 +388,8 @@ XSetTSOrigin(
GC gc,
int x, int y)
{
+ (void)display;
+
gc->ts_x_origin = x;
gc->ts_y_origin = y;
return Success;
@@ -385,6 +401,8 @@ XSetFont(
GC gc,
Font font)
{
+ (void)display;
+
gc->font = font;
return Success;
}
@@ -395,6 +413,8 @@ XSetArcMode(
GC gc,
int arc_mode)
{
+ (void)display;
+
gc->arc_mode = arc_mode;
return Success;
}
@@ -405,6 +425,8 @@ XSetStipple(
GC gc,
Pixmap stipple)
{
+ (void)display;
+
gc->stipple = stipple;
return Success;
}
@@ -418,6 +440,8 @@ XSetLineAttributes(
int cap_style,
int join_style)
{
+ (void)display;
+
gc->line_width = line_width;
gc->line_style = line_style;
gc->cap_style = cap_style;
@@ -432,6 +456,8 @@ XSetClipOrigin(
int clip_x_origin,
int clip_y_origin)
{
+ (void)display;
+
gc->clip_x_origin = clip_x_origin;
gc->clip_y_origin = clip_y_origin;
return Success;
@@ -464,6 +490,8 @@ TkSetRegion(
GC gc,
TkRegion r)
{
+ (void)display;
+
if (r == NULL) {
Tcl_Panic("must not pass NULL to TkSetRegion for compatibility with X11; use XSetClipMask instead");
} else {
@@ -484,6 +512,8 @@ XSetClipMask(
GC gc,
Pixmap pixmap)
{
+ (void)display;
+
if (pixmap == None) {
FreeClipMask(gc);
} else {
@@ -542,6 +572,7 @@ XDrawPoints(
int mode)
{
int res = Success;
+ (void)mode;
while (npoints-- > 0) {
res = XDrawLine(display, d, gc,
@@ -561,6 +592,12 @@ XDrawSegments(
XSegment *segments,
int nsegments)
{
+ (void)display;
+ (void)d;
+ (void)gc;
+ (void)segments;
+ (void)nsegments;
+
return BadDrawable;
}
#endif
@@ -572,6 +609,10 @@ XFetchBuffer(
int *nbytes_return,
int buffer)
{
+ (void)display;
+ (void)nbytes_return;
+ (void)buffer;
+
return (char *) 0;
}
@@ -581,7 +622,11 @@ XFetchName(
Window w,
char **window_name_return)
{
- return (Status) 0;
+ (void)display;
+ (void)w;
+ (void)window_name_return;
+
+ return Success;
}
Atom *
@@ -590,32 +635,25 @@ XListProperties(
Window w,
int *num_prop_return)
{
+ (void)display;
+ (void)w;
+ (void)num_prop_return;
+
return (Atom *) 0;
}
-void
+int
XMapRaised(
Display *display,
Window w)
{
-}
+ (void)display;
+ (void)w;
-void
-XPutImage(
- Display *display,
- Drawable d,
- GC gc,
- XImage *image,
- int src_x,
- int src_y,
- int dest_x,
- int dest_y,
- unsigned int width,
- unsigned int height)
-{
+ return Success;
}
-void
+int
XQueryTextExtents(
Display *display,
XID font_ID,
@@ -626,9 +664,19 @@ XQueryTextExtents(
int *font_descent_return,
XCharStruct *overall_return)
{
+ (void)display;
+ (void)font_ID;
+ (void)string;
+ (void)nchars;
+ (void)direction_return;
+ (void)font_ascent_return;
+ (void)font_descent_return;
+ (void)overall_return;
+
+ return Success;
}
-void
+int
XReparentWindow(
Display *display,
Window w,
@@ -636,29 +684,297 @@ XReparentWindow(
int x,
int y)
{
+ (void)display;
+ (void)w;
+ (void)parent;
+ (void)x;
+ (void)y;
+
+ return BadWindow;
}
-void
-XRotateBuffers(
+int
+XUndefineCursor(
Display *display,
- int rotate)
+ Window w)
{
+ (void)display;
+ (void)w;
+
+ return Success;
+}
+
+XVaNestedList
+XVaCreateNestedList(
+ int unused, ...)
+{
+ (void)unused;
+ return NULL;
+}
+
+char *
+XSetICValues(
+ XIC xic, ...)
+{
+ (void)xic;
+ return NULL;
+}
+
+char *
+XGetICValues(
+ XIC xic, ...)
+{
+ (void)xic;
+ return NULL;
}
void
-XStoreBuffer(
+XSetICFocus(
+ XIC xic)
+{
+ (void)xic;
+}
+
+Window
+XCreateWindow(
Display *display,
- _Xconst char *bytes,
- int nbytes,
- int buffer)
+ Window parent,
+ int x,
+ int y,
+ unsigned int width,
+ unsigned int height,
+ unsigned int border_width,
+ int depth,
+ unsigned int clazz,
+ Visual *visual,
+ unsigned long value_mask,
+ XSetWindowAttributes *attributes)
+{
+ (void)display;
+ (void)parent;
+ (void)x;
+ (void)y;
+ (void)width;
+ (void)height;
+ (void)border_width;
+ (void)depth;
+ (void)clazz;
+ (void)visual;
+ (void)value_mask;
+ (void)attributes;
+
+ return 0;
+}
+
+int
+XPointInRegion(
+ Region rgn,
+ int x,
+ int y)
{
+ (void)rgn;
+ (void)x;
+ (void)y;
+
+ return 0;
}
+int
+XUnionRegion(
+ Region srca,
+ Region srcb,
+ Region dr_return)
+{
+ (void)srca;
+ (void)srcb;
+ (void)dr_return;
+
+ return 0;
+}
+
+Region
+XPolygonRegion(
+ XPoint *pts,
+ int n,
+ int rule)
+{
+ (void)pts;
+ (void)n;
+ (void)rule;
+
+ return 0;
+}
+#endif
+
void
-XUndefineCursor(
+XDestroyIC(
+ XIC ic)
+{
+ (void)ic;
+}
+
+Cursor
+XCreatePixmapCursor(
Display *display,
- Window w)
+ Pixmap source,
+ Pixmap mask,
+ XColor *foreground_color,
+ XColor *background_color,
+ unsigned int x,
+ unsigned int y)
+{
+ (void)display;
+ (void)source;
+ (void)mask;
+ (void)foreground_color;
+ (void)background_color;
+ (void)x;
+ (void)y;
+
+ return (Cursor) NULL;
+}
+
+Cursor
+XCreateGlyphCursor(
+ Display *display,
+ Font source_font,
+ Font mask_font,
+ unsigned int source_char,
+ unsigned int mask_char,
+ XColor _Xconst *foreground_color,
+ XColor _Xconst *background_color)
{
+ (void)display;
+ (void)source_font;
+ (void)mask_font;
+ (void)source_char;
+ (void)mask_char;
+ (void)foreground_color;
+ (void)background_color;
+
+ return (Cursor) NULL;
+}
+
+#if 0
+XFontSet
+XCreateFontSet(
+ Display *display /* display */,
+ _Xconst char *base_font_name_list /* base_font_name_list */,
+ char ***missing_charset_list /* missing_charset_list */,
+ int *missing_charset_count /* missing_charset_count */,
+ char **def_string /* def_string */
+) {
+ (void)display;
+ (void)base_font_name_list;
+ (void)missing_charset_list;
+ (void)missing_charset_count;
+ (void)def_string;
+
+ return (XFontSet)0;
+}
+
+void
+XFreeFontSet(
+ Display *display, /* display */
+ XFontSet fontset /* font_set */
+) {
+ (void)display;
+ (void)fontset;
+}
+
+void
+XFreeStringList(
+ char **list /* list */
+) {
+ (void)list;
+}
+
+Status
+XCloseIM(
+ XIM im /* im */
+) {
+ (void)im;
+
+ return Success;
+}
+
+Bool
+XRegisterIMInstantiateCallback(
+ Display *dpy /* dpy */,
+ struct _XrmHashBucketRec *rdb /* rdb */,
+ char *res_name /* res_name */,
+ char *res_class /* res_class */,
+ XIDProc callback /* callback */,
+ XPointer client_data /* client_data */
+) {
+ (void)dpy;
+ (void)rdb;
+ (void)res_name;
+ (void)res_class;
+ (void)callback;
+ (void)client_data;
+
+ return False;
+}
+
+Bool
+XUnregisterIMInstantiateCallback(
+ Display *dpy /* dpy */,
+ struct _XrmHashBucketRec *rdb /* rdb */,
+ char *res_name /* res_name */,
+ char *res_class /* res_class */,
+ XIDProc callback /* callback */,
+ XPointer client_data /* client_data */
+) {
+ (void)dpy;
+ (void)rdb;
+ (void)res_name;
+ (void)res_class;
+ (void)callback;
+ (void)client_data;
+
+ return False;
+}
+
+char *
+XSetLocaleModifiers(
+ const char *modifier_list /* modifier_list */
+) {
+ (void)modifier_list;
+
+ return NULL;
+}
+
+XIM XOpenIM(
+ Display *dpy /* dpy */,
+ struct _XrmHashBucketRec *rdb /* rdb */,
+ char *res_name /* res_name */,
+ char *res_class /* res_class */
+) {
+ (void)dpy;
+ (void)rdb;
+ (void)res_name;
+ (void)res_class;
+
+ return NULL;
+}
+
+char *
+XGetIMValues(
+ XIM im /* im */, ...
+) {
+ (void)im;
+
+ return NULL;
+}
+
+char *
+XSetIMValues(
+ XIM im /* im */, ...
+) {
+ (void)im;
+
+ return NULL;
}
#endif