clang-format

This commit is contained in:
Max Brunsfeld 2016-01-22 22:10:18 -07:00
parent f0b1d851ce
commit 1ec39abe6a
2 changed files with 27 additions and 20 deletions

View file

@ -66,10 +66,11 @@ static inline void vector_erase(Vector *self, size_t index) {
static inline bool vector_push(Vector *self, void *entry) {
if (self->size == self->capacity) {
self->capacity += 4;
void *new_contents = ts_realloc(self->contents, self->capacity * self->element_size);
if (!new_contents)
void *contents =
ts_realloc(self->contents, self->capacity * self->element_size);
if (!contents)
return false;
self->contents = new_contents;
self->contents = contents;
}
char *contents = (char *)self->contents;