There seems little value retaining this when it adds complication and was a
contributing factor in the bug just fixed. This potentially slightly degrades
performance (initial style use results in a heap allocation), but is unlikely to
be measurable and should be regained back if we implement Small String
Optimization on `agxbuf`.
}
#define FUNLIMIT 64
-static char outbuf[SMALLBUF];
static agxbuf ps_xb;
/* parse_style:
{
static char *parse[FUNLIMIT];
size_t parse_offsets[sizeof(parse) / sizeof(parse[0])];
- static bool is_first = true;
size_t fun = 0;
bool in_parens = false;
char *p;
- if (is_first) {
- agxbinit(&ps_xb, SMALLBUF, outbuf);
- is_first = false;
- }
-
p = s;
while (true) {
token_t c = style_token(&p);