void ctxtRenumberItems(const Context_Tag tag) { ctxtCheckInfoTag(tag); assert(ctxtFromTag(tag) != CTXT_INVALID); CTXT_INFO(tag, nummin) = CTXT_INFO(tag, nummax) = 0; env_forAll(ctxtFromTag(tag), renumber, (void*)tag); }
int ctxtClear(const Context_Tag tag) { ctxt_info_t *info; ctxtCheckInfoTag(tag); assert(ctxtFromTag(tag) != CTXT_INVALID); /* Clear the useage information */ info = &CTXT_INFO_STRUCT(tag); info->c_sizecur = 0; info->c_nummax = info->c_nummin= 0; /* Clear the items within the context */ return env_forAll(ctxtFromTag(tag), clear, (void*)tag); }
void ctxtScanStatus(void) { assert(ctxt); env_forAll(ctxt, scan, 0); }