mirror of
https://github.com/neovim/neovim.git
synced 2025-10-11 12:26:37 +00:00
api: Enable usage of Arrays and Dictionaries as [k]vectors
- Rename a/n/m to items/size/capactity in kvec.h - Add capactity field to Arrays/Dictionaries
This commit is contained in:
@@ -49,14 +49,14 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
Object *items;
|
||||
size_t size;
|
||||
size_t size, capacity;
|
||||
} Array;
|
||||
|
||||
typedef struct key_value_pair KeyValuePair;
|
||||
|
||||
typedef struct {
|
||||
KeyValuePair *items;
|
||||
size_t size;
|
||||
size_t size, capacity;
|
||||
} Dictionary;
|
||||
|
||||
typedef enum {
|
||||
|
Reference in New Issue
Block a user