summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.4.046
blob: 5bb4265828e8fefd05eea4e7f801b1aad3f7b441 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
To: vim_dev@googlegroups.com
Subject: Patch 7.4.046
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.4.046
Problem:    Can't use Tcl 8.6.
Solution:   Change how Tcl_FindExecutable is called. (Jan Nijtmans)
Files:	    src/if_tcl.c


*** ../vim-7.4.045/src/if_tcl.c	2013-08-02 19:31:15.000000000 +0200
--- src/if_tcl.c	2013-10-02 13:44:48.000000000 +0200
***************
*** 165,170 ****
--- 165,171 ----
   */
  static HANDLE hTclLib = NULL;
  Tcl_Interp* (*dll_Tcl_CreateInterp)();
+ void (*dll_Tcl_FindExecutable)(const void *);
  
  /*
   * Table of name to function pointer of tcl.
***************
*** 175,180 ****
--- 176,182 ----
      TCL_PROC* ptr;
  } tcl_funcname_table[] = {
      {"Tcl_CreateInterp", (TCL_PROC*)&dll_Tcl_CreateInterp},
+     {"Tcl_FindExecutable", (TCL_PROC*)&dll_Tcl_FindExecutable},
      {NULL, NULL},
  };
  
***************
*** 248,258 ****
      {
  	Tcl_Interp *interp;
  
  	if (interp = dll_Tcl_CreateInterp())
  	{
  	    if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0))
  	    {
- 		Tcl_FindExecutable(find_executable_arg);
  		Tcl_DeleteInterp(interp);
  		stubs_initialized = TRUE;
  	    }
--- 250,261 ----
      {
  	Tcl_Interp *interp;
  
+ 	dll_Tcl_FindExecutable(find_executable_arg);
+ 
  	if (interp = dll_Tcl_CreateInterp())
  	{
  	    if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0))
  	    {
  		Tcl_DeleteInterp(interp);
  		stubs_initialized = TRUE;
  	    }
*** ../vim-7.4.045/src/version.c	2013-09-29 21:11:00.000000000 +0200
--- src/version.c	2013-10-02 13:46:47.000000000 +0200
***************
*** 740,741 ****
--- 740,743 ----
  {   /* Add new patch number below this line */
+ /**/
+     46,
  /**/

-- 
Not too long ago, a program was something you watched on TV...

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///