summaryrefslogtreecommitdiff
path: root/vector.h
blob: c64eb1fe90d1f0232750f40d1c55d36a43da1b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef CGIT_VECTOR_H
#define CGIT_VECTOR_H

#include <stdlib.h>

struct vector {
	size_t size;
	size_t count;
	size_t alloc;
	void *data;
};

#define VECTOR_INIT(type) {sizeof(type), 0, 0, NULL}

int vector_push(struct vector *vec, const void *data, int gently);

#endif /* CGIT_VECTOR_H */
d=ef8a97d9c6983e4fc3710bdbe771edd4e3550dba&follow=1'>Fix colspan valuesLukas Fleischer3-14/+28 2013-03-20html: check return value of writeJason A. Donenfeld1-2/+3 2013-03-20ui-shared: squelch compiler warning.Jason A. Donenfeld1-0/+1 2013-03-20cgit.mk: Use SHELL_PATH_SQ to run gen-version.shJohn Keeping1-1/+1 2013-03-20cgit.mk: don't rebuild everything if CGIT_VERSION changesJohn Keeping1-1/+8 2013-03-20ui-patch: use cgit_version not CGIT_VERSIONJohn Keeping1-1/+1 2013-03-20Makefile: re-use Git's Makefile where possibleJohn Keeping3-119/+80