summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-22 15:31:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-01-22 15:31:42 (GMT)
commitadae2dcc7ca1c9e8162356b4263e4bb77b083091 (patch)
tree0ea609105a03c434e0269e3ee79cdf5a5178096d /generic
parent7239bfe15aedb0a255b0fa5b1b8ab677b81bf431 (diff)
downloadtcl-adae2dcc7ca1c9e8162356b4263e4bb77b083091.zip
tcl-adae2dcc7ca1c9e8162356b4263e4bb77b083091.tar.gz
tcl-adae2dcc7ca1c9e8162356b4263e4bb77b083091.tar.bz2
Undo (for now) removal of TclMacOSXNotifierAddRunLoopMode(), we don't want an earlier compiled Tk to crash. Just wait some time, until everyone uses a newer Tk 8.7, using Tcl_MacOSXNotifierAddRunLoopMode()
Diffstat (limited to 'generic')
-rw-r--r--generic/tclInt.decls7
-rw-r--r--generic/tclIntPlatDecls.h19
-rw-r--r--generic/tclStubInit.c5
3 files changed, 19 insertions, 12 deletions
diff --git a/generic/tclInt.decls b/generic/tclInt.decls
index add705b..303492e 100644
--- a/generic/tclInt.decls
+++ b/generic/tclInt.decls
@@ -1317,10 +1317,9 @@ declare 18 {unix macosx} {
const char *fileName, Tcl_StatBuf *statBufPtr,
Tcl_GlobTypeData *types)
}
-# Removed in 9.0:
-#declare 19 {unix macosx} {
-# void TclMacOSXNotifierAddRunLoopMode(const void *runLoopMode)
-#}
+declare 19 {unix macosx} {
+ void TclMacOSXNotifierAddRunLoopMode(const void *runLoopMode)
+}
declare 22 {unix macosx} {
TclFile TclpCreateTempFile_(const char *contents)
}
diff --git a/generic/tclIntPlatDecls.h b/generic/tclIntPlatDecls.h
index b45f25d..bc6a7e3 100644
--- a/generic/tclIntPlatDecls.h
+++ b/generic/tclIntPlatDecls.h
@@ -92,7 +92,9 @@ EXTERN int TclMacOSXMatchType(Tcl_Interp *interp,
const char *pathName, const char *fileName,
Tcl_StatBuf *statBufPtr,
Tcl_GlobTypeData *types);
-/* Slot 19 is reserved */
+/* 19 */
+EXTERN void TclMacOSXNotifierAddRunLoopMode(
+ const void *runLoopMode);
/* Slot 20 is reserved */
/* Slot 21 is reserved */
/* 22 */
@@ -224,7 +226,9 @@ EXTERN int TclMacOSXMatchType(Tcl_Interp *interp,
const char *pathName, const char *fileName,
Tcl_StatBuf *statBufPtr,
Tcl_GlobTypeData *types);
-/* Slot 19 is reserved */
+/* 19 */
+EXTERN void TclMacOSXNotifierAddRunLoopMode(
+ const void *runLoopMode);
/* Slot 20 is reserved */
/* Slot 21 is reserved */
/* 22 */
@@ -267,7 +271,7 @@ typedef struct TclIntPlatStubs {
int (*tclMacOSXSetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj *attributePtr); /* 16 */
int (*tclMacOSXCopyFileAttributes) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr); /* 17 */
int (*tclMacOSXMatchType) (Tcl_Interp *interp, const char *pathName, const char *fileName, Tcl_StatBuf *statBufPtr, Tcl_GlobTypeData *types); /* 18 */
- void (*reserved19)(void);
+ void (*tclMacOSXNotifierAddRunLoopMode) (const void *runLoopMode); /* 19 */
void (*reserved20)(void);
void (*reserved21)(void);
TclFile (*tclpCreateTempFile_) (const char *contents); /* 22 */
@@ -333,7 +337,7 @@ typedef struct TclIntPlatStubs {
int (*tclMacOSXSetFileAttribute) (Tcl_Interp *interp, int objIndex, Tcl_Obj *fileName, Tcl_Obj *attributePtr); /* 16 */
int (*tclMacOSXCopyFileAttributes) (const char *src, const char *dst, const Tcl_StatBuf *statBufPtr); /* 17 */
int (*tclMacOSXMatchType) (Tcl_Interp *interp, const char *pathName, const char *fileName, Tcl_StatBuf *statBufPtr, Tcl_GlobTypeData *types); /* 18 */
- void (*reserved19)(void);
+ void (*tclMacOSXNotifierAddRunLoopMode) (const void *runLoopMode); /* 19 */
void (*reserved20)(void);
void (*reserved21)(void);
TclFile (*tclpCreateTempFile_) (const char *contents); /* 22 */
@@ -395,7 +399,8 @@ extern const TclIntPlatStubs *tclIntPlatStubsPtr;
(tclIntPlatStubsPtr->tclMacOSXCopyFileAttributes) /* 17 */
#define TclMacOSXMatchType \
(tclIntPlatStubsPtr->tclMacOSXMatchType) /* 18 */
-/* Slot 19 is reserved */
+#define TclMacOSXNotifierAddRunLoopMode \
+ (tclIntPlatStubsPtr->tclMacOSXNotifierAddRunLoopMode) /* 19 */
/* Slot 20 is reserved */
/* Slot 21 is reserved */
#define TclpCreateTempFile_ \
@@ -498,7 +503,8 @@ extern const TclIntPlatStubs *tclIntPlatStubsPtr;
(tclIntPlatStubsPtr->tclMacOSXCopyFileAttributes) /* 17 */
#define TclMacOSXMatchType \
(tclIntPlatStubsPtr->tclMacOSXMatchType) /* 18 */
-/* Slot 19 is reserved */
+#define TclMacOSXNotifierAddRunLoopMode \
+ (tclIntPlatStubsPtr->tclMacOSXNotifierAddRunLoopMode) /* 19 */
/* Slot 20 is reserved */
/* Slot 21 is reserved */
#define TclpCreateTempFile_ \
@@ -525,6 +531,7 @@ extern const TclIntPlatStubs *tclIntPlatStubsPtr;
#undef TclpCreateTempFile_
#undef TclUnixWaitForFile_
+#undef TclMacOSXNotifierAddRunLoopMode
#ifndef MAC_OSX_TCL /* not accessable on Win32/UNIX */
#undef TclMacOSXGetFileAttribute /* 15 */
#undef TclMacOSXSetFileAttribute /* 16 */
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 51d0a38..577c05a 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -154,6 +154,7 @@ static void uniCodePanic() {
# define Tcl_MacOSXOpenVersionedBundleResources 0
# define Tcl_MacOSXNotifierAddRunLoopMode 0
#endif
+#define TclMacOSXNotifierAddRunLoopMode Tcl_MacOSXNotifierAddRunLoopMode
#ifdef _WIN32
# define Tcl_CreateFileHandler 0
# define Tcl_DeleteFileHandler 0
@@ -564,7 +565,7 @@ static const TclIntPlatStubs tclIntPlatStubs = {
TclMacOSXSetFileAttribute, /* 16 */
TclMacOSXCopyFileAttributes, /* 17 */
TclMacOSXMatchType, /* 18 */
- 0, /* 19 */
+ TclMacOSXNotifierAddRunLoopMode, /* 19 */
0, /* 20 */
0, /* 21 */
TclpCreateTempFile_, /* 22 */
@@ -630,7 +631,7 @@ static const TclIntPlatStubs tclIntPlatStubs = {
TclMacOSXSetFileAttribute, /* 16 */
TclMacOSXCopyFileAttributes, /* 17 */
TclMacOSXMatchType, /* 18 */
- 0, /* 19 */
+ TclMacOSXNotifierAddRunLoopMode, /* 19 */
0, /* 20 */
0, /* 21 */
TclpCreateTempFile_, /* 22 */