diff options
author | ZyX <kp-pav@yandex.ru> | 2017-01-07 15:26:34 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-01-07 15:54:55 +0300 |
commit | 728367a196c8396c8b186f1dbe2cf878a7fec038 (patch) | |
tree | 782ef7bf53e47e2cf7b6e7efed868d3bace32572 /src/nvim/hashtab.c | |
parent | a970c1a95785cce9176274ffd4b783c79372afed (diff) | |
download | rneovim-728367a196c8396c8b186f1dbe2cf878a7fec038.tar.gz rneovim-728367a196c8396c8b186f1dbe2cf878a7fec038.tar.bz2 rneovim-728367a196c8396c8b186f1dbe2cf878a7fec038.zip |
unittest: Add dict_items function
Diffstat (limited to 'src/nvim/hashtab.c')
-rw-r--r-- | src/nvim/hashtab.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/hashtab.c b/src/nvim/hashtab.c index fa4077f22f..376f33e23e 100644 --- a/src/nvim/hashtab.c +++ b/src/nvim/hashtab.c @@ -36,6 +36,8 @@ # include "hashtab.c.generated.h" #endif +char hash_removed; + /// Initialize an empty hash table. void hash_init(hashtab_T *ht) { @@ -380,3 +382,13 @@ hash_T hash_hash(char_u *key) return hash; } + +/// Function to get HI_KEY_REMOVED value +/// +/// Used for testing because luajit ffi does not allow getting addresses of +/// globals. +const char_u *_hash_key_removed(void) + FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT +{ + return HI_KEY_REMOVED; +} |