forked from aniani/vim
updated for version 7.4.046
Problem: Can't use Tcl 8.6. Solution: Change how Tcl_FindExecutable is called. (Jan Nijtmans)
This commit is contained in:
@@ -165,6 +165,7 @@ typedef int HANDLE;
|
|||||||
*/
|
*/
|
||||||
static HANDLE hTclLib = NULL;
|
static HANDLE hTclLib = NULL;
|
||||||
Tcl_Interp* (*dll_Tcl_CreateInterp)();
|
Tcl_Interp* (*dll_Tcl_CreateInterp)();
|
||||||
|
void (*dll_Tcl_FindExecutable)(const void *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Table of name to function pointer of tcl.
|
* Table of name to function pointer of tcl.
|
||||||
@@ -175,6 +176,7 @@ static struct {
|
|||||||
TCL_PROC* ptr;
|
TCL_PROC* ptr;
|
||||||
} tcl_funcname_table[] = {
|
} tcl_funcname_table[] = {
|
||||||
{"Tcl_CreateInterp", (TCL_PROC*)&dll_Tcl_CreateInterp},
|
{"Tcl_CreateInterp", (TCL_PROC*)&dll_Tcl_CreateInterp},
|
||||||
|
{"Tcl_FindExecutable", (TCL_PROC*)&dll_Tcl_FindExecutable},
|
||||||
{NULL, NULL},
|
{NULL, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -248,11 +250,12 @@ tcl_enabled(verbose)
|
|||||||
{
|
{
|
||||||
Tcl_Interp *interp;
|
Tcl_Interp *interp;
|
||||||
|
|
||||||
|
dll_Tcl_FindExecutable(find_executable_arg);
|
||||||
|
|
||||||
if (interp = dll_Tcl_CreateInterp())
|
if (interp = dll_Tcl_CreateInterp())
|
||||||
{
|
{
|
||||||
if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0))
|
if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0))
|
||||||
{
|
{
|
||||||
Tcl_FindExecutable(find_executable_arg);
|
|
||||||
Tcl_DeleteInterp(interp);
|
Tcl_DeleteInterp(interp);
|
||||||
stubs_initialized = TRUE;
|
stubs_initialized = TRUE;
|
||||||
}
|
}
|
||||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
46,
|
||||||
/**/
|
/**/
|
||||||
45,
|
45,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user