void texturepoolInit() { size = 256; entries = 0; texturepool = MALLOCN(TexturepoolElem, size); texturepool->filename = NULL; }
/* Called by: zxbus_load_ent, zxbus_login_ent, zxbus_login_subj_hash */ struct hi_ent* zxbus_new_ent(struct hiios* shf, int len, const char* eid) { struct hi_ent* ent; if (len == -1) len = strlen(eid); ZMALLOC(ent); ent->n = shf->ents; shf->ents = ent; ZMALLOCN(ent->chs, shf->max_chs); MALLOCN(ent->eid, len+1); memcpy(ent->eid, eid, len); ent->eid[len] = 0; return ent; }