Karsten Hopp 8ce09d
To: vim_dev@googlegroups.com
Karsten Hopp 8ce09d
Subject: Patch 7.4.046
Karsten Hopp 8ce09d
Fcc: outbox
Karsten Hopp 8ce09d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8ce09d
Mime-Version: 1.0
Karsten Hopp 8ce09d
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8ce09d
Content-Transfer-Encoding: 8bit
Karsten Hopp 8ce09d
------------
Karsten Hopp 8ce09d
Karsten Hopp 8ce09d
Patch 7.4.046
Karsten Hopp 8ce09d
Problem:    Can't use Tcl 8.6.
Karsten Hopp 8ce09d
Solution:   Change how Tcl_FindExecutable is called. (Jan Nijtmans)
Karsten Hopp 8ce09d
Files:	    src/if_tcl.c
Karsten Hopp 8ce09d
Karsten Hopp 8ce09d
Karsten Hopp 8ce09d
*** ../vim-7.4.045/src/if_tcl.c	2013-08-02 19:31:15.000000000 +0200
Karsten Hopp 8ce09d
--- src/if_tcl.c	2013-10-02 13:44:48.000000000 +0200
Karsten Hopp 8ce09d
***************
Karsten Hopp 8ce09d
*** 165,170 ****
Karsten Hopp 8ce09d
--- 165,171 ----
Karsten Hopp 8ce09d
   */
Karsten Hopp 8ce09d
  static HANDLE hTclLib = NULL;
Karsten Hopp 8ce09d
  Tcl_Interp* (*dll_Tcl_CreateInterp)();
Karsten Hopp 8ce09d
+ void (*dll_Tcl_FindExecutable)(const void *);
Karsten Hopp 8ce09d
  
Karsten Hopp 8ce09d
  /*
Karsten Hopp 8ce09d
   * Table of name to function pointer of tcl.
Karsten Hopp 8ce09d
***************
Karsten Hopp 8ce09d
*** 175,180 ****
Karsten Hopp 8ce09d
--- 176,182 ----
Karsten Hopp 8ce09d
      TCL_PROC* ptr;
Karsten Hopp 8ce09d
  } tcl_funcname_table[] = {
Karsten Hopp 8ce09d
      {"Tcl_CreateInterp", (TCL_PROC*)&dll_Tcl_CreateInterp},
Karsten Hopp 8ce09d
+     {"Tcl_FindExecutable", (TCL_PROC*)&dll_Tcl_FindExecutable},
Karsten Hopp 8ce09d
      {NULL, NULL},
Karsten Hopp 8ce09d
  };
Karsten Hopp 8ce09d
  
Karsten Hopp 8ce09d
***************
Karsten Hopp 8ce09d
*** 248,258 ****
Karsten Hopp 8ce09d
      {
Karsten Hopp 8ce09d
  	Tcl_Interp *interp;
Karsten Hopp 8ce09d
  
Karsten Hopp 8ce09d
  	if (interp = dll_Tcl_CreateInterp())
Karsten Hopp 8ce09d
  	{
Karsten Hopp 8ce09d
  	    if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0))
Karsten Hopp 8ce09d
  	    {
Karsten Hopp 8ce09d
- 		Tcl_FindExecutable(find_executable_arg);
Karsten Hopp 8ce09d
  		Tcl_DeleteInterp(interp);
Karsten Hopp 8ce09d
  		stubs_initialized = TRUE;
Karsten Hopp 8ce09d
  	    }
Karsten Hopp 8ce09d
--- 250,261 ----
Karsten Hopp 8ce09d
      {
Karsten Hopp 8ce09d
  	Tcl_Interp *interp;
Karsten Hopp 8ce09d
  
Karsten Hopp 8ce09d
+ 	dll_Tcl_FindExecutable(find_executable_arg);
Karsten Hopp 8ce09d
+ 
Karsten Hopp 8ce09d
  	if (interp = dll_Tcl_CreateInterp())
Karsten Hopp 8ce09d
  	{
Karsten Hopp 8ce09d
  	    if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0))
Karsten Hopp 8ce09d
  	    {
Karsten Hopp 8ce09d
  		Tcl_DeleteInterp(interp);
Karsten Hopp 8ce09d
  		stubs_initialized = TRUE;
Karsten Hopp 8ce09d
  	    }
Karsten Hopp 8ce09d
*** ../vim-7.4.045/src/version.c	2013-09-29 21:11:00.000000000 +0200
Karsten Hopp 8ce09d
--- src/version.c	2013-10-02 13:46:47.000000000 +0200
Karsten Hopp 8ce09d
***************
Karsten Hopp 8ce09d
*** 740,741 ****
Karsten Hopp 8ce09d
--- 740,743 ----
Karsten Hopp 8ce09d
  {   /* Add new patch number below this line */
Karsten Hopp 8ce09d
+ /**/
Karsten Hopp 8ce09d
+     46,
Karsten Hopp 8ce09d
  /**/
Karsten Hopp 8ce09d
Karsten Hopp 8ce09d
-- 
Karsten Hopp 8ce09d
Not too long ago, a program was something you watched on TV...
Karsten Hopp 8ce09d
Karsten Hopp 8ce09d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8ce09d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8ce09d
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8ce09d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///