mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
api: initialize capacity in the array_dict_macro
This commit is contained in:
parent
fa01ea8ead
commit
d29b62daab
@ -5,7 +5,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#define ARRAY_DICT_INIT {.size = 0, .items = NULL}
|
||||
#define ARRAY_DICT_INIT {.size = 0, .capacity = 0, .items = NULL}
|
||||
#define STRING_INIT {.data = NULL, .size = 0}
|
||||
#define OBJECT_INIT { .type = kObjectTypeNil }
|
||||
#define REMOTE_TYPE(type) typedef uint64_t type
|
||||
|
Loading…
Reference in New Issue
Block a user