API: Refactor: Add macro infrastructure for typed arrays

- Add macros supporting typed arrays in the remote API
- Refactor StringArray-related functions on top of the new macros
This commit is contained in:
Thiago de Arruda
2014-05-23 15:49:40 -03:00
parent 92307201b5
commit 1e67b13fdc
3 changed files with 45 additions and 43 deletions

View File

@@ -34,10 +34,7 @@ REMOTE_TYPE(Tabpage);
typedef struct object Object;
typedef struct {
String *items;
size_t size;
} StringArray;
TYPED_ARRAY_OF(String);
typedef struct {
Integer row, col;