apple_state
struct apple_state *c = (struct apple_state *)s->ctx;
if ((s->ctx = calloc(1, sizeof(struct apple_state))) == NULL)