about summary refs log tree commit diff stats
path: root/vector.h
diff options
context:
space:
mode:
authorLukas Fleischer2013-11-22 13:24:52 +0100
committerJason A. Donenfeld2014-01-08 14:59:38 +0100
commit9973ef0207d21535a05610ca50d9f45c7c56c758 (patch)
treeb6049b899f23d7447ee39077f80e2dd2f86d3d2b /vector.h
parentui-stats.c: Remove unused macro (diff)
downloadcgit-9973ef0207d21535a05610ca50d9f45c7c56c758.tar.gz
cgit-9973ef0207d21535a05610ca50d9f45c7c56c758.zip
Use argv_array in place of vector
Instead of using our own vector implementation, use argv_array from Git
which has been specifically designed for dynamic size argv arrays.

Drop vector.h and vector.c which are no longer needed.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'vector.h')
-rw-r--r--vector.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/vector.h b/vector.h deleted file mode 100644 index c64eb1f..0000000 --- a/vector.h +++ /dev/null
@@ -1,17 +0,0 @@
1#ifndef CGIT_VECTOR_H
2#define CGIT_VECTOR_H
3
4#include <stdlib.h>
5
6struct vector {
7 size_t size;
8 size_t count;
9 size_t alloc;
10 void *data;
11};
12
13#define VECTOR_INIT(type) {sizeof(type), 0, 0, NULL}
14
15int vector_push(struct vector *vec, const void *data, int gently);
16
17#endif /* CGIT_VECTOR_H */