/* s w a p I n d e x  */
returnValue Bounds_swapIndex(Bounds *_THIS, Indexlist *const indexlist, int number1, int number2)
/* s w a p I n d e x  */
returnValue Bounds_swapIndex(Bounds *_THIS, Indexlist *const indexlist, int number1, int number2)
{
	if ( _THIS->status != 0 )
	{
		if ( _THIS->status[number1] != _THIS->status[number2] )
			return THROWERROR( RET_SWAPINDEX_FAILED );
	}
	else
		return THROWERROR( RET_SWAPINDEX_FAILED );
	if ( number1 == number2 )
	{
		THROWWARNING( RET_NOTHING_TO_DO );
		return SUCCESSFUL_RETURN;
	}
	if ( indexlist != 0 )
	{
		if ( Indexlist_swapNumbers( indexlist,number1,number2 ) != SUCCESSFUL_RETURN )
			return THROWERROR( RET_SWAPINDEX_FAILED );
	}
	else
		return THROWERROR( RET_INVALID_ARGUMENTS );
	return SUCCESSFUL_RETURN;
}