Mercurial > repos > blastem
diff tern.c @ 799:0b692b5d154b
Merge
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 26 Jul 2015 13:25:31 -0700 |
parents | 724bbec47f86 |
children | 110251ea369e |
line wrap: on
line diff
--- a/tern.c Sun Jul 26 13:08:22 2015 -0700 +++ b/tern.c Sun Jul 26 13:25:31 2015 -0700 @@ -8,6 +8,7 @@ #include <stdlib.h> #include <string.h> #include <stdio.h> +#include "util.h" tern_node * tern_insert(tern_node * head, char * key, tern_val value) { @@ -190,8 +191,7 @@ } if (head->el) { if (pos == MAX_ITER_KEY) { - fputs("exceeded maximum key size", stderr); - exit(1); + fatal_error("tern_foreach_int: exceeded maximum key size"); } keybuf[pos] = head->el; tern_foreach_int(head->straight.next, fun, data, keybuf, pos+1);