mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
refactor: format all C files under nvim/ #15977
* refactor: format all C files under nvim * refactor: disable formatting for Vim-owned files: * src/nvim/indent_c.c * src/nvim/regexp.c * src/nvim/regexp_nfa.c * src/nvim/testdir/samples/memfile_test.c
This commit is contained in:
@@ -77,18 +77,18 @@ typedef struct hashtable_S {
|
||||
/// @param hi Name of the variable with current hashtab entry.
|
||||
/// @param code Cycle body.
|
||||
#define HASHTAB_ITER(ht, hi, code) \
|
||||
do { \
|
||||
hashtab_T *const hi##ht_ = (ht); \
|
||||
size_t hi##todo_ = hi##ht_->ht_used; \
|
||||
for (hashitem_T *hi = hi##ht_->ht_array; hi##todo_; hi++) { \
|
||||
if (!HASHITEM_EMPTY(hi)) { \
|
||||
hi##todo_--; \
|
||||
{ \
|
||||
code \
|
||||
} \
|
||||
do { \
|
||||
hashtab_T *const hi##ht_ = (ht); \
|
||||
size_t hi##todo_ = hi##ht_->ht_used; \
|
||||
for (hashitem_T *hi = hi##ht_->ht_array; hi##todo_; hi++) { \
|
||||
if (!HASHITEM_EMPTY(hi)) { \
|
||||
hi##todo_--; \
|
||||
{ \
|
||||
code \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "hashtab.h.generated.h"
|
||||
|
Reference in New Issue
Block a user