home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.0.093 < prev    next >
Encoding:
Internet Message Format  |  2001-11-05  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.093
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 6.0.093
  11. Problem:    When the Tcl library couldn't be loaded dynamically, get an error
  12.             message when closing a buffer or window. (Muraoka Taro)
  13. Solution:   Only free structures if already using the Tcl interpreter.
  14. Files:      src/if_tcl.c
  15.  
  16.  
  17. *** ../vim60.92/src/if_tcl.c    Sun Nov  4 14:31:23 2001
  18. --- src/if_tcl.c    Tue Nov  6 11:39:23 2001
  19. ***************
  20. *** 228,233 ****
  21. --- 228,236 ----
  22.   }
  23.   
  24.   #if defined(DYNAMIC_TCL) || defined(PROTO)
  25. + static int stubs_initialized = FALSE;
  26.   /*
  27.    * Return TRUE if the TCL interface can be used.
  28.    */
  29. ***************
  30. *** 235,242 ****
  31.   tcl_enabled(verbose)
  32.       int        verbose;
  33.   {
  34. -     static int stubs_initialized = FALSE;
  35.       if (!stubs_initialized && find_executable_arg != NULL
  36.           && tcl_runtime_link_init(DYNAMIC_TCL_DLL, verbose) == OK)
  37.       {
  38. --- 238,243 ----
  39. ***************
  40. *** 2079,2085 ****
  41.       struct ref *reflist;
  42.   
  43.   #ifdef DYNAMIC_TCL
  44. !     if (!tcl_enabled(TRUE))
  45.       return;
  46.   #endif
  47.   
  48. --- 2080,2086 ----
  49.       struct ref *reflist;
  50.   
  51.   #ifdef DYNAMIC_TCL
  52. !     if (!stubs_initialized)    /* Not using Tcl, nothing to do. */
  53.       return;
  54.   #endif
  55.   
  56. ***************
  57. *** 2100,2106 ****
  58.       struct ref *reflist;
  59.   
  60.   #ifdef DYNAMIC_TCL
  61. !     if (!tcl_enabled(TRUE))
  62.       return;
  63.   #endif
  64.   
  65. --- 2101,2107 ----
  66.       struct ref *reflist;
  67.   
  68.   #ifdef DYNAMIC_TCL
  69. !     if (!stubs_initialized)    /* Not using Tcl, nothing to do. */
  70.       return;
  71.   #endif
  72.   
  73. *** ../vim60.92/src/version.c    Tue Nov  6 22:02:12 2001
  74. --- src/version.c    Tue Nov  6 22:03:56 2001
  75. ***************
  76. *** 608,609 ****
  77. --- 608,611 ----
  78.   {   /* Add new patch number below this line */
  79. + /**/
  80. +     93,
  81.   /**/
  82.  
  83. -- 
  84. How To Keep A Healthy Level Of Insanity:
  85. 6. In the memo field of all your checks, write "for sexual favors".
  86.  
  87.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  88. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  89.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  90.