git.ckatri.com
/
cgit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cache.c: cache ls_cache output properly
[cgit.git]
/
vector.h
1
#ifndef CGIT_VECTOR_H
2
#define CGIT_VECTOR_H
3
4
#include <stdlib.h>
5
6
struct
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
15
int
vector_push
(
struct
vector
*
vec
,
const void
*
data
,
int
gently
);
16
17
#endif
/* CGIT_VECTOR_H */