diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-01-17 20:14:45 -0600 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-01-17 23:00:52 -0600 |
commit | 9244eacb5ab0b9a11480d1ad40d4720575676877 (patch) | |
tree | c49c20b4c693c6676d49f35b6c1217131dd4c0da /vector.h | |
parent | bb7ae08ee638cf9b88a69ca89c5b6b12401c37f5 (diff) |
nqasm: parse labels
Diffstat (limited to 'vector.h')
-rw-r--r-- | vector.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vector.h b/vector.h new file mode 100644 index 0000000..fb32da7 --- /dev/null +++ b/vector.h @@ -0,0 +1,13 @@ +#ifndef NQ_VECTOR_H +#define NQ_VECTOR_H + +#include <stddef.h> + +struct vector { + size_t alloc, count, elemsize, arrayoff; +}; + +void *vector_init(size_t alloc, size_t elemsize, size_t arrayoff); +void *vector_append(struct vector **vp); + +#endif |