summaryrefslogtreecommitdiffstats
path: root/generic/tclStubInit.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-03-27 14:06:03 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-03-27 14:06:03 (GMT)
commit25e3aa7559b4e27cced6cee40a166e952aea34b5 (patch)
treee13faf6a9d7607a35f01ef2d0d73c876a2320dc8 /generic/tclStubInit.c
parent4d689647004c08b001ec6f321f6f5b96ea445c64 (diff)
downloadtcl-25e3aa7559b4e27cced6cee40a166e952aea34b5.zip
tcl-25e3aa7559b4e27cced6cee40a166e952aea34b5.tar.gz
tcl-25e3aa7559b4e27cced6cee40a166e952aea34b5.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 */