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:
Thiago de Arruda
2014-06-18 11:31:47 -03:00
parent 20fda27cda
commit caf2fb8480
2 changed files with 26 additions and 26 deletions

View File

@@ -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 {