mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
unittest: Add dict_items function
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user