mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-17 15:34:34 +00:00
373a74044a
* include/abg-ir.h: Nest all hashers. * include/abg-irfwd.h (abigail): Don't inject std::tr1::hash. Remove hasher forward declarations. * include/abg-hash.h: Tweak. * src/abg-hash.cc: Define hashers here. * src/abg-ir.cc: Adjust for above. * src/abg-reader.cc: Same. * src/abg-writer.cc: Same.
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
// -*- mode: C++ -*-
|
|
//
|
|
// Copyright (C) 2013 Red Hat, Inc.
|
|
//
|
|
// This file is part of the GNU Application Binary Interface Generic
|
|
// Analysis and Instrumentation Library (libabigail). This library is
|
|
// free software; you can redistribute it and/or modify it under the
|
|
// terms of the GNU Lesser General Public License as published by the
|
|
// Free Software Foundation; either version 3, or (at your option) any
|
|
// later version.
|
|
|
|
// This library is distributed in the hope that it will be useful, but
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
// General Lesser Public License for more details.
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
// License along with this program; see the file COPYING-LGPLV3. If
|
|
// not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/// @file
|
|
|
|
#ifndef __ABG_HASH_H__
|
|
#define __ABG_HASH_H__
|
|
|
|
#include <cstddef>
|
|
|
|
namespace abigail
|
|
{
|
|
/// Namespace for hashing.
|
|
namespace hashing
|
|
{
|
|
/// Produce good hash value combining val1 and val2.
|
|
/// This is copied from tree.c in GCC.
|
|
std::size_t
|
|
combine_hashes(std::size_t, std::size_t);
|
|
}//end namespace hashing
|
|
}//end namespace abigail
|
|
|
|
#endif //__ABG_HASH_H__
|