scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#include <scc/scc.h>
 2
 3void
 4newitem(struct items *items, char *item)
 5{
 6	if ((items->n + 1) < items->n)
 7		die("overflow in newitem (%u + 1)", items->n);
 8
 9	items->s = xrealloc(items->s, (items->n + 1) * sizeof(char **));
10	items->s[items->n++] = item;
11}
12