Store trees in the links between stack nodes, not in the nodes themselves

This commit is contained in:
Max Brunsfeld 2016-02-23 17:35:50 -08:00
parent abbc282950
commit da2ef7ad35
6 changed files with 295 additions and 351 deletions

View file

@ -40,7 +40,7 @@ extern "C" {
#define array_push(self, element) \
(((self)->size < (self)->capacity || \
array_grow((self), (self)->capacity * 2)) && \
array_grow((self), (self)->capacity ? (self)->capacity * 2 : 4)) && \
((self)->contents[(self)->size++] = (element), true))
#define array_splice(self, index, old_count, new_count, new_elements) \