Allow views to skip configures

To do this properly, the transaction queue will only be processed if it
can be completely processed.
This commit is contained in:
Ryan Dwyer 2018-06-27 19:07:48 +10:00
parent e6829c5991
commit 9652529cc1
5 changed files with 42 additions and 22 deletions

View file

@ -62,6 +62,13 @@ void list_cat(list_t *list, list_t *source) {
}
}
void list_empty(list_t *list) {
list->capacity = 10;
list->length = 0;
free(list->items);
list->items = malloc(sizeof(void*) * list->capacity);
}
void list_qsort(list_t *list, int compare(const void *left, const void *right)) {
qsort(list->items, list->length, sizeof(void *), compare);
}