diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-05-28 18:24:23 -0300 |
---|---|---|
committer | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-06-16 01:31:35 -0300 |
commit | 48fc1602bef4d74e3510b549d328127386261f06 (patch) | |
tree | de13df77c4e936c2cfe87971ba68f0776bd5986e /src/nvim/hashtab.h | |
parent | 6f29364632192a046839c24b8256da627fbb1067 (diff) | |
download | rneovim-48fc1602bef4d74e3510b549d328127386261f06.tar.gz rneovim-48fc1602bef4d74e3510b549d328127386261f06.tar.bz2 rneovim-48fc1602bef4d74e3510b549d328127386261f06.zip |
No OOM in hash_may_resize() and hash_add_item()
hash_add() can still return FAIL if the key already exists.
Diffstat (limited to 'src/nvim/hashtab.h')
-rw-r--r-- | src/nvim/hashtab.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/hashtab.h b/src/nvim/hashtab.h index c268175b01..e4ad5e57fe 100644 --- a/src/nvim/hashtab.h +++ b/src/nvim/hashtab.h @@ -59,8 +59,6 @@ typedef struct hashtable_S { size_t ht_used; /// number of items used size_t ht_filled; /// number of items used or removed int ht_locked; /// counter for hash_lock() - bool ht_error; /// when set growing failed, can't add more - /// items before growing works hashitem_T *ht_array; /// points to the array, allocated when it's /// not "ht_smallarray" hashitem_T ht_smallarray[HT_INIT_SIZE]; /// initial array @@ -69,4 +67,5 @@ typedef struct hashtable_S { #ifdef INCLUDE_GENERATED_DECLARATIONS # include "hashtab.h.generated.h" #endif + #endif // NVIM_HASHTAB_H |