Exemple #1
0
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);
}
Exemple #2
0
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);
}
Exemple #3
0
void ctxtScanStatus(void)
{
	assert(ctxt);

	env_forAll(ctxt, scan, 0);
}