Import Tk 8.6.11

This commit is contained in:
Steve Dower
2021-03-30 00:54:10 +01:00
parent 42c69189d9
commit 070b8750b0
403 changed files with 21608 additions and 16269 deletions

View File

@@ -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;
}