mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00
api: initialize capacity in the array_dict_macro
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user