Skip to content

Instantly share code, notes, and snippets.

@mhinz
Created November 20, 2015 14:28
Show Gist options
  • Save mhinz/e56d0457278cac1645da to your computer and use it in GitHub Desktop.
Save mhinz/e56d0457278cac1645da to your computer and use it in GitHub Desktop.
typedef struct {
Object *items;
size_t size;
size_t capacity;
} Array;
typedef struct {
ObjectType type;
union {
Array array;
Boolean boolean;
Buffer buffer;
Dictionary dictionary;
Float floating;
Integer integer;
String string;
Tabpage tabpage;
Window window;
} data;
} Object;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment