• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Révisiond2a4f08396fe8c01ebca988db5eb95b7c3f9db8b (tree)
l'heure2006-04-30 07:03:41
Auteurvimboss
Commitervimboss

Message de Log

updated for version 7.0f05

Change Summary

Modification

diff -r 24b17b7badb1 -r d2a4f08396fe src/eval.c
--- a/src/eval.c Sat Apr 29 22:02:36 2006 +0000
+++ b/src/eval.c Sat Apr 29 22:03:41 2006 +0000
@@ -198,6 +198,9 @@
198198 */
199199 static hashtab_T func_hashtab;
200200
201+/* The names of packages that once were loaded is remembered. */
202+static garray_T ga_loaded = {0, 0, sizeof(char_u *), 4, NULL};
203+
201204 /* list heads for garbage collection */
202205 static dict_T *first_dict = NULL; /* list of all dicts */
203206 static list_T *first_list = NULL; /* list of all lists */
@@ -807,6 +810,9 @@
807810 free_all_functions();
808811 hash_clear(&func_hashtab);
809812
813+ /* autoloaded script names */
814+ ga_clear_strings(&ga_loaded);
815+
810816 /* unreferenced lists and dicts */
811817 (void)garbage_collect();
812818 }
@@ -19098,10 +19104,11 @@
1909819104 function_exists(name)
1909919105 char_u *name;
1910019106 {
19101- char_u *p = name;
19107+ char_u *nm = name;
19108+ char_u *p;
1910219109 int n = FALSE;
1910319110
19104- p = trans_function_name(&p, FALSE, TFN_INT|TFN_QUIET, NULL);
19111+ p = trans_function_name(&nm, FALSE, TFN_INT|TFN_QUIET, NULL);
1910519112 if (p != NULL)
1910619113 {
1910719114 if (builtin_function(p))
@@ -19309,9 +19316,6 @@
1930919316
1931019317 #endif
1931119318
19312-/* The names of packages that once were loaded is remembered. */
19313-static garray_T ga_loaded = {0, 0, sizeof(char_u *), 4, NULL};
19314-
1931519319 /*
1931619320 * If "name" has a package name try autoloading the script for it.
1931719321 * Return TRUE if a package was loaded.
Afficher sur ancien navigateur de dépôt.