Skip to content

Commit 51efe86

Browse files
committed
updated for version 7.4.046
Problem: Can't use Tcl 8.6. Solution: Change how Tcl_FindExecutable is called. (Jan Nijtmans)
1 parent c712906 commit 51efe86

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/if_tcl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ typedef int HANDLE;
165165
*/
166166
static HANDLE hTclLib = NULL;
167167
Tcl_Interp* (*dll_Tcl_CreateInterp)();
168+
void (*dll_Tcl_FindExecutable)(const void *);
168169

169170
/*
170171
* Table of name to function pointer of tcl.
@@ -175,6 +176,7 @@ static struct {
175176
TCL_PROC* ptr;
176177
} tcl_funcname_table[] = {
177178
{"Tcl_CreateInterp", (TCL_PROC*)&dll_Tcl_CreateInterp},
179+
{"Tcl_FindExecutable", (TCL_PROC*)&dll_Tcl_FindExecutable},
178180
{NULL, NULL},
179181
};
180182

@@ -248,11 +250,12 @@ tcl_enabled(verbose)
248250
{
249251
Tcl_Interp *interp;
250252

253+
dll_Tcl_FindExecutable(find_executable_arg);
254+
251255
if (interp = dll_Tcl_CreateInterp())
252256
{
253257
if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0))
254258
{
255-
Tcl_FindExecutable(find_executable_arg);
256259
Tcl_DeleteInterp(interp);
257260
stubs_initialized = TRUE;
258261
}

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,8 @@ static char *(features[]) =
738738

739739
static int included_patches[] =
740740
{ /* Add new patch number below this line */
741+
/**/
742+
46,
741743
/**/
742744
45,
743745
/**/

0 commit comments

Comments
 (0)