library/src/datastructures/BP-HashTable.cc
// Attempts to destroy a table entry by a provided path.
Attempts to destroy a table entry by a provided path.
Attempts to destroy a table entry by a provided path .
BP_ERROR_T BP_HashRegDestroyEntryByPath
(
	P_BP_HASH_TABLE_REGISTRY     hreg,
	BP_HASH_TABLE_TRAVERSAL_PATH table_path
)
{
	BP_GLOBAL_HASH_TABLE_OVERRIDE(ERR_FAILURE);
	if(!table_path)
		return ERR_FAILURE;
	if(!table_path[0])
		return ERR_FAILURE;
	P_BP_HASH_TABLE_KEYED_ENTRY tmp_lookup = BP_HashRegLookupTableEntryByPath(hreg, table_path);
	if(!tmp_lookup)
		return ERR_FAILURE;
	return BP_HashRegDestroyEntry
	(
		hreg,
		tmp_lookup
	);
}
BP_ERROR_T BP_HashRegDestroyEntryByPath ( P_BP_HASH_TABLE_REGISTRY hreg , BP_HASH_TABLE_TRAVERSAL_PATH table_path ) { BP_GLOBAL_HASH_TABLE_OVERRIDE ( ERR_FAILURE ) ; if ( ! table_path ) return ERR_FAILURE ; if ( ! table_path [ 0 ] ) return ERR_FAILURE ; P_BP_HASH_TABLE_KEYED_ENTRY tmp_lookup = BP_HashRegLookupTableEntryByPath ( hreg , table_path ) ; if ( ! tmp_lookup ) return ERR_FAILURE ; return BP_HashRegDestroyEntry ( hreg , tmp_lookup ) ; }
Attempts to destroy a table entry by a provided path.
Attempts to destroy a table entry by a provided path .
// macro to override hreg on null // ensure we have a table path to work with // attempt to lookup the table // destroy entry