From f2ad275bb3619165357b369ac083ae2f73d5a543 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 16 Jul 2012 16:32:55 +0200 Subject: [PATCH] rework hashset Only define functions for which the user provided a renaming #define (instead of forcing the users to create name for everything) Only define iterator struct if a rename #define is present (instead of forcing the user to define NO_ITERATOR if he doesn't want one) --- ir/adt/hashset.c | 70 +++++++++++++++++------------------------ ir/adt/hashset.h | 4 +-- ir/ir/irlinkednodemap.c | 1 - ir/ir/irlinkednodemap.h | 4 --- ir/ir/irlinkednodeset.c | 1 - ir/ir/irlinkednodeset.h | 4 --- ir/ir/valueset.c | 1 - ir/ir/valueset.h | 4 --- 8 files changed, 31 insertions(+), 58 deletions(-) diff --git a/ir/adt/hashset.c b/ir/adt/hashset.c index 563c46e8b..e0cf70c77 100644 --- a/ir/adt/hashset.c +++ b/ir/adt/hashset.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2012 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -36,7 +36,7 @@ *
  • Hash(hashset,key) calculates the hash value for a given key
  • * * - * Note that by default it is assumed that the data values themselfes are used + * Note that by default it is assumed that the data values themselves are used * as keys. However you can change that with additional defines: * *