| 58 | } |
| 59 | |
| 60 | static bool ts_ints_push(ts_ints_t *a, int v) { |
| 61 | if (!ts_grow((void **)&a->items, &a->cap, a->count, sizeof(*a->items))) { |
| 62 | return false; |
| 63 | } |
| 64 | a->items[a->count++] = v; |
| 65 | return true; |
| 66 | } |
| 67 | |
| 68 | static bool ts_strs_push(ts_strs_t *a, const char *v) { |
| 69 | if (!ts_grow((void **)&a->items, &a->cap, a->count, sizeof(*a->items))) { |