Karsten Hopp 81c285
To: vim-dev@vim.org
Karsten Hopp 81c285
Subject: Patch 7.2.187
Karsten Hopp 81c285
Fcc: outbox
Karsten Hopp 81c285
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 81c285
Mime-Version: 1.0
Karsten Hopp 81c285
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 81c285
Content-Transfer-Encoding: 8bit
Karsten Hopp 81c285
------------
Karsten Hopp 81c285
Karsten Hopp 81c285
Patch 7.2.187 (after 7.2.186)
Karsten Hopp 81c285
Problem:    Doesn't build with older versions of TCL. (Yongwei Wu)
Karsten Hopp 81c285
Solution:   Add #ifdefs. (Dominique Pelle)
Karsten Hopp 81c285
Files:	    src/if_tcl.c
Karsten Hopp 81c285
Karsten Hopp 81c285
Karsten Hopp 81c285
*** ../vim-7.2.186/src/if_tcl.c	2009-05-22 21:07:45.000000000 +0200
Karsten Hopp 81c285
--- src/if_tcl.c	2009-05-23 14:23:51.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 161,167 ****
Karsten Hopp 81c285
  # endif
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
!  * Declare HANDLE for perl.dll and function pointers.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
  static HANDLE hTclLib = NULL;
Karsten Hopp 81c285
  Tcl_Interp* (*dll_Tcl_CreateInterp)();
Karsten Hopp 81c285
--- 161,167 ----
Karsten Hopp 81c285
  # endif
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  /*
Karsten Hopp 81c285
!  * Declare HANDLE for tcl.dll and function pointers.
Karsten Hopp 81c285
   */
Karsten Hopp 81c285
  static HANDLE hTclLib = NULL;
Karsten Hopp 81c285
  Tcl_Interp* (*dll_Tcl_CreateInterp)();
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 182,188 ****
Karsten Hopp 81c285
   * Make all runtime-links of tcl.
Karsten Hopp 81c285
   *
Karsten Hopp 81c285
   * 1. Get module handle using LoadLibraryEx.
Karsten Hopp 81c285
!  * 2. Get pointer to perl function by GetProcAddress.
Karsten Hopp 81c285
   * 3. Repeat 2, until get all functions will be used.
Karsten Hopp 81c285
   *
Karsten Hopp 81c285
   * Parameter 'libname' provides name of DLL.
Karsten Hopp 81c285
--- 182,188 ----
Karsten Hopp 81c285
   * Make all runtime-links of tcl.
Karsten Hopp 81c285
   *
Karsten Hopp 81c285
   * 1. Get module handle using LoadLibraryEx.
Karsten Hopp 81c285
!  * 2. Get pointer to tcl function by GetProcAddress.
Karsten Hopp 81c285
   * 3. Repeat 2, until get all functions will be used.
Karsten Hopp 81c285
   *
Karsten Hopp 81c285
   * Parameter 'libname' provides name of DLL.
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 1670,1692 ****
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  static Tcl_ChannelType channel_type =
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
!     "vimmessage",
Karsten Hopp 81c285
!     NULL,   /* blockmode */
Karsten Hopp 81c285
!     channel_close,
Karsten Hopp 81c285
!     channel_input,
Karsten Hopp 81c285
!     channel_output,
Karsten Hopp 81c285
!     NULL,   /* seek */
Karsten Hopp 81c285
!     NULL,   /* set option */
Karsten Hopp 81c285
!     NULL,   /* get option */
Karsten Hopp 81c285
!     channel_watch,
Karsten Hopp 81c285
!     channel_gethandle,
Karsten Hopp 81c285
!     NULL,
Karsten Hopp 81c285
!     NULL,
Karsten Hopp 81c285
!     NULL,
Karsten Hopp 81c285
!     NULL,
Karsten Hopp 81c285
!     NULL,
Karsten Hopp 81c285
!     NULL,
Karsten Hopp 81c285
!     NULL
Karsten Hopp 81c285
  };
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  /**********************************
Karsten Hopp 81c285
--- 1670,1700 ----
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  static Tcl_ChannelType channel_type =
Karsten Hopp 81c285
  {
Karsten Hopp 81c285
!     "vimmessage",	/* typeName */
Karsten Hopp 81c285
!     NULL,		/* version */
Karsten Hopp 81c285
!     channel_close,	/* closeProc */
Karsten Hopp 81c285
!     channel_input,	/* inputProc */
Karsten Hopp 81c285
!     channel_output,	/* outputProc */
Karsten Hopp 81c285
!     NULL,		/* seekProc */
Karsten Hopp 81c285
!     NULL,		/* setOptionProc */
Karsten Hopp 81c285
!     NULL,		/* getOptionProc */
Karsten Hopp 81c285
!     channel_watch,	/* watchProc */
Karsten Hopp 81c285
!     channel_gethandle,	/* getHandleProc */
Karsten Hopp 81c285
!     NULL,		/* close2Proc */
Karsten Hopp 81c285
!     NULL,		/* blockModeProc */
Karsten Hopp 81c285
! #ifdef TCL_CHANNEL_VERSION_2
Karsten Hopp 81c285
!     NULL,		/* flushProc */
Karsten Hopp 81c285
!     NULL,		/* handlerProc */
Karsten Hopp 81c285
! #endif
Karsten Hopp 81c285
! #ifdef TCL_CHANNEL_VERSION_3
Karsten Hopp 81c285
!     NULL,		/* wideSeekProc */
Karsten Hopp 81c285
! #endif
Karsten Hopp 81c285
! #ifdef TCL_CHANNEL_VERSION_4
Karsten Hopp 81c285
!     NULL,		/* threadActionProc */
Karsten Hopp 81c285
! #endif
Karsten Hopp 81c285
! #ifdef TCL_CHANNEL_VERSION_5
Karsten Hopp 81c285
!     NULL		/* truncateProc */
Karsten Hopp 81c285
! #endif
Karsten Hopp 81c285
  };
Karsten Hopp 81c285
  
Karsten Hopp 81c285
  /**********************************
Karsten Hopp 81c285
*** ../vim-7.2.186/src/version.c	2009-05-22 21:07:45.000000000 +0200
Karsten Hopp 81c285
--- src/version.c	2009-05-23 14:25:04.000000000 +0200
Karsten Hopp 81c285
***************
Karsten Hopp 81c285
*** 678,679 ****
Karsten Hopp 81c285
--- 678,681 ----
Karsten Hopp 81c285
  {   /* Add new patch number below this line */
Karsten Hopp 81c285
+ /**/
Karsten Hopp 81c285
+     187,
Karsten Hopp 81c285
  /**/
Karsten Hopp 81c285
Karsten Hopp 81c285
-- 
Karsten Hopp 81c285
Friends?  I have lots of friends!  In fact, I have every episode ever made.
Karsten Hopp 81c285
Karsten Hopp 81c285
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 81c285
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 81c285
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 81c285
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///