FreeBSD/contrib/subversion/subversion/libsvn_subr/cache-membuffer.c
/* Compare two tags and fail with an assertion upon differences.
 */
Compare two tags and fail with an assertion upon differences.
Compare two tags and fail with an assertion upon differences .
static svn_error_t* assert_equal_tags(const entry_tag_t *lhs,
                                      const entry_tag_t *rhs)
{
  SVN_ERR_ASSERT(memcmp(lhs->content_hash, rhs->content_hash,
                        sizeof(lhs->content_hash)) == 0);
  SVN_ERR_ASSERT(memcmp(lhs->prefix_hash, rhs->prefix_hash,
                        sizeof(lhs->prefix_hash)) == 0);
  SVN_ERR_ASSERT(memcmp(lhs->key_hash, rhs->key_hash,
                        sizeof(lhs->key_hash)) == 0);
  SVN_ERR_ASSERT(memcmp(lhs->prefix_tail, rhs->prefix_tail,
                        sizeof(lhs->prefix_tail)) == 0);
  SVN_ERR_ASSERT(lhs->key_len == rhs->key_len);
  return SVN_NO_ERROR;
}
static svn_error_t * assert_equal_tags ( const entry_tag_t * lhs , const entry_tag_t * rhs ) { SVN_ERR_ASSERT ( memcmp ( lhs -> content_hash , rhs -> content_hash , sizeof ( lhs -> content_hash ) ) == 0 ) ; SVN_ERR_ASSERT ( memcmp ( lhs -> prefix_hash , rhs -> prefix_hash , sizeof ( lhs -> prefix_hash ) ) == 0 ) ; SVN_ERR_ASSERT ( memcmp ( lhs -> key_hash , rhs -> key_hash , sizeof ( lhs -> key_hash ) ) == 0 ) ; SVN_ERR_ASSERT ( memcmp ( lhs -> prefix_tail , rhs -> prefix_tail , sizeof ( lhs -> prefix_tail ) ) == 0 ) ; SVN_ERR_ASSERT ( lhs -> key_len == rhs -> key_len ) ; return SVN_NO_ERROR ; }
Compare two tags and fail with an assertion upon differences.
Compare two tags and fail with an assertion upon differences .