projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
@note instead of @Note
[libfirm]
/
include
/
libfirm
/
adt
/
hashset.h
diff --git
a/include/libfirm/adt/hashset.h
b/include/libfirm/adt/hashset.h
index
9495ef0
..
89c112c
100644
(file)
--- a/
include/libfirm/adt/hashset.h
+++ b/
include/libfirm/adt/hashset.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-40,7
+40,7
@@
typedef struct HashSetEntry {
} HashSetEntry;
#endif
} HashSetEntry;
#endif
-
typedef
struct HashSet {
+struct HashSet {
HashSetEntry *entries;
size_t num_buckets;
size_t enlarge_threshold;
HashSetEntry *entries;
size_t num_buckets;
size_t enlarge_threshold;
@@
-54,16
+54,18
@@
typedef struct HashSet {
#ifdef ADDITIONAL_DATA
ADDITIONAL_DATA
#endif
#ifdef ADDITIONAL_DATA
ADDITIONAL_DATA
#endif
-}
HashSet
;
+};
-typedef struct HashSetIterator {
+#ifndef NO_ITERATOR
+struct HashSetIterator {
HashSetEntry *current_bucket;
HashSetEntry *end;
#ifndef NDEBUG
HashSetEntry *current_bucket;
HashSetEntry *end;
#ifndef NDEBUG
- const HashSet *set;
+ const
struct
HashSet *set;
unsigned entries_version;
#endif
unsigned entries_version;
#endif
-} HashSetIterator;
+};
+#endif
#ifdef DO_REHASH
#undef HashSetEntry
#ifdef DO_REHASH
#undef HashSetEntry