patch 8.2.5154: still mentioning version8, some cosmetic issues
Problem: Still mentioning version8, some cosmetic issues.
Solution: Prefer mentioning version9, cosmetic improvements.
diff --git a/src/if_tcl.c b/src/if_tcl.c
index 8a6af8d..9e018a2 100644
--- a/src/if_tcl.c
+++ b/src/if_tcl.c
@@ -221,12 +221,13 @@
for (i = 0; tcl_funcname_table[i].ptr; ++i)
{
if (!(*tcl_funcname_table[i].ptr = symbol_from_dll(hTclLib,
- tcl_funcname_table[i].name)))
+ tcl_funcname_table[i].name)))
{
close_dll(hTclLib);
hTclLib = NULL;
if (verbose)
- semsg(_(e_could_not_load_library_function_str), tcl_funcname_table[i].name);
+ semsg(_(e_could_not_load_library_function_str),
+ tcl_funcname_table[i].name);
return FAIL;
}
}
@@ -263,11 +264,13 @@
{
Tcl_Interp *interp;
+ // Note: the library will allocate memory to store the executable name,
+ // which will be reported as possibly leaked by valgrind.
dll_Tcl_FindExecutable(find_executable_arg);
if ((interp = dll_Tcl_CreateInterp()) != NULL)
{
- if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0))
+ if (Tcl_InitStubs(interp, DYNAMIC_TCL_VER, 0) != NULL)
{
Tcl_DeleteInterp(interp);
stubs_initialized = TRUE;
@@ -280,6 +283,9 @@
#endif
#if defined(EXITFREE) || defined(PROTO)
+/*
+ * Called once when exiting.
+ */
void
vim_tcl_finalize(void)
{