summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-27 14:06:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-03-27 14:06:03 (GMT)
commit0a1209b8b919a0913b8ef905bd8244dfaf8d56ea (patch)
treee13faf6a9d7607a35f01ef2d0d73c876a2320dc8 /generic/tclStubInit.c
parent7d678ecc919f1d253250ee607311fad444343d25 (diff)
downloadtcl-0a1209b8b919a0913b8ef905bd8244dfaf8d56ea.zip
tcl-0a1209b8b919a0913b8ef905bd8244dfaf8d56ea.tar.gz
tcl-0a1209b8b919a0913b8ef905bd8244dfaf8d56ea.tar.bz2
Add dummy (undocumented) TclCanceled function in stub table (not exported as symbol or macro), which always returns TCL_OK. Needed for Tk 8.5.14 when running in Tcl 8.6 for properly clean-up when a (Tcl 8.6) thread is canceled.
Diffstat (limited to 'generic/tclStubInit.c')
-rw-r--r--generic/tclStubInit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index fd4a222..f8012c2 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -76,6 +76,13 @@ MODULE_SCOPE TclPlatStubs tclPlatStubs;
MODULE_SCOPE TclStubs tclStubs;
MODULE_SCOPE TclTomMathStubs tclTomMathStubs;
+#define TclCanceled canceled
+static int TclCanceled(interp)
+ Tcl_Interp *interp;
+{
+ return TCL_OK;
+}
+
#if defined(_WIN32) || defined(__CYGWIN__)
#undef TclWinNToHS
unsigned short TclWinNToHS(unsigned short ns) {
@@ -1256,7 +1263,7 @@ TclStubs tclStubs = {
Tcl_ObjPrintf, /* 578 */
Tcl_AppendPrintfToObj, /* 579 */
NULL, /* 580 */
- NULL, /* 581 */
+ TclCanceled, /* 581 */
NULL, /* 582 */
NULL, /* 583 */
NULL, /* 584 */