mirror of
https://github.com/neovim/neovim.git
synced 2025-10-19 16:21:51 +00:00
shada: Add support for dumping/restoring bufs changes and win jumps
This commit is contained in:
@@ -577,6 +577,19 @@ static kh_inline khint_t __ac_Wang_hash(khint_t key)
|
||||
code; \
|
||||
} }
|
||||
|
||||
/*! @function
|
||||
@abstract Iterate over the keys in the hash table
|
||||
@param h Pointer to the hash table [khash_t(name)*]
|
||||
@param kvar Variable to which value will be assigned
|
||||
@param code Block of code to execute
|
||||
*/
|
||||
#define kh_foreach_key(h, kvar, code) { khint_t __i; \
|
||||
for (__i = kh_begin(h); __i != kh_end(h); ++__i) { \
|
||||
if (!kh_exist(h,__i)) continue; \
|
||||
(kvar) = kh_key(h,__i); \
|
||||
code; \
|
||||
} }
|
||||
|
||||
/* More conenient interfaces */
|
||||
|
||||
/*! @function
|
||||
|
Reference in New Issue
Block a user