comparison src/hashtab.c @ 10605:9279c939391b v8.0.0192

patch 8.0.0192: cannot build with tiny features commit https://github.com/vim/vim/commit/42b8d916c719002dbafade6b977d4e266f8712dc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 15 17:18:57 2017 +0100 patch 8.0.0192: cannot build with tiny features Problem: Build fails with tiny features. Solution: Change #ifdef for hash_clear(). Avoid warning for unused argument.
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Jan 2017 17:30:03 +0100
parents 66f1b5bf3fa6
children 55ccc2d353bd
comparison
equal deleted inserted replaced
10604:fc8b7abe3471 10605:9279c939391b
68 vim_memset(ht, 0, sizeof(hashtab_T)); 68 vim_memset(ht, 0, sizeof(hashtab_T));
69 ht->ht_array = ht->ht_smallarray; 69 ht->ht_array = ht->ht_smallarray;
70 ht->ht_mask = HT_INIT_SIZE - 1; 70 ht->ht_mask = HT_INIT_SIZE - 1;
71 } 71 }
72 72
73 #if defined(FEAT_EVAL) || defined(FEAT_SYN_HL) || defined(PROTO)
74 /* 73 /*
75 * Free the array of a hash table. Does not free the items it contains! 74 * Free the array of a hash table. Does not free the items it contains!
76 * If "ht" is not freed then you should call hash_init() next! 75 * If "ht" is not freed then you should call hash_init() next!
77 */ 76 */
78 void 77 void
102 --todo; 101 --todo;
103 } 102 }
104 } 103 }
105 hash_clear(ht); 104 hash_clear(ht);
106 } 105 }
107 #endif
108 106
109 /* 107 /*
110 * Find "key" in hashtable "ht". "key" must not be NULL. 108 * Find "key" in hashtable "ht". "key" must not be NULL.
111 * Always returns a pointer to a hashitem. If the item was not found then 109 * Always returns a pointer to a hashitem. If the item was not found then
112 * HASHITEM_EMPTY() is TRUE. The pointer is then the place where the key 110 * HASHITEM_EMPTY() is TRUE. The pointer is then the place where the key