static void cw_init(attrib * a) { curse *c; curse_init(a); c = (curse *)a->data.v; c->data.v = calloc(sizeof(wallcurse), 1); }
static int cw_read_depr(variant *var, void *target, gamedata *data) { storage *store = data->store; curse_init(var); curse_read(var, store, target); curse_done(var); READ_INT(store, NULL); return AT_READ_DEPR; }