Import Tk 8.6.10

This commit is contained in:
Steve Dower
2020-09-24 22:55:34 +01:00
parent 5ba5cbc9af
commit 42c69189d9
365 changed files with 24323 additions and 12832 deletions

View File

@@ -50,7 +50,7 @@
static TkpClipMask *AllocClipMask(GC gc) {
TkpClipMask *clip_mask = (TkpClipMask*) gc->clip_mask;
if (clip_mask == None) {
if (clip_mask == NULL) {
clip_mask = ckalloc(sizeof(TkpClipMask));
gc->clip_mask = (Pixmap) clip_mask;
#ifdef MAC_OSX_TK
@@ -117,7 +117,7 @@ XCreateGC(
/*
* In order to have room for a dash list, MAX_DASH_LIST_SIZE extra chars
* are defined, which is invisible from the outside. The list is assumed
* to end with a 0-char, so this must be set explicitely during
* to end with a 0-char, so this must be set explicitly during
* initialization.
*/
@@ -125,7 +125,7 @@ XCreateGC(
gp = ckalloc(sizeof(XGCValues) + MAX_DASH_LIST_SIZE + gcCacheSize);
if (!gp) {
return None;
return NULL;
}
#define InitField(name,maskbit,default) \
@@ -268,7 +268,7 @@ int XFreeGC(
Display *d,
GC gc)
{
if (gc != None) {
if (gc != NULL) {
FreeClipMask(gc);
TkpFreeGCCache(gc);
ckfree(gc);
@@ -453,19 +453,19 @@ XSetClipOrigin(
* None.
*
* Side effects:
* Allocates or dealloates a TkpClipMask.
* Allocates or deallocates a TkpClipMask.
*
*----------------------------------------------------------------------
*/
void
int
TkSetRegion(
Display *display,
GC gc,
TkRegion r)
{
if (r == None) {
Tcl_Panic("must not pass None to TkSetRegion for compatibility with X11; use XSetClipMask instead");
if (r == NULL) {
Tcl_Panic("must not pass NULL to TkSetRegion for compatibility with X11; use XSetClipMask instead");
} else {
TkpClipMask *clip_mask = AllocClipMask(gc);
@@ -475,6 +475,7 @@ TkSetRegion(
TkpRetainRegion(r);
#endif
}
return Success;
}
int