library/src/garbage_collection/BP_MemoryGarbageCollector.cc
// reset all first pointers in a list
reset all first pointers in a list
reset all first pointers in a list
size_t BP_GarbageCollectorResetAllFirstListPtrs(P_BP_GARBAGE_COLLECTOR_ALLOC_CHUNK chunk_list, P_BP_GARBAGE_COLLECTOR_ALLOC_CHUNK new_first)
{
	if(!chunk_list)
		return ERR_FAILURE;
	chunk_list = chunk_list->first;
	for(; chunk_list; chunk_list = chunk_list->next)
	{
		chunk_list->first = new_first;
	}
	return ERR_SUCCESS;
}
size_t BP_GarbageCollectorResetAllFirstListPtrs ( P_BP_GARBAGE_COLLECTOR_ALLOC_CHUNK chunk_list , P_BP_GARBAGE_COLLECTOR_ALLOC_CHUNK new_first ) { if ( ! chunk_list ) return ERR_FAILURE ; chunk_list = chunk_list -> first ; for ( ; chunk_list ; chunk_list = chunk_list -> next ) { chunk_list -> first = new_first ; } return ERR_SUCCESS ; }
reset all first pointers in a list
reset all first pointers in a list
// reset chunk list first pointer // set new first pointer in list // return indicating success