projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
824b7ee
)
allow derived hashsets to have an own resize
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 3 Jul 2008 16:09:08 +0000
(16:09 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 3 Jul 2008 16:09:08 +0000
(16:09 +0000)
[r20330]
ir/adt/hashset.c
patch
|
blob
|
history
diff --git
a/ir/adt/hashset.c
b/ir/adt/hashset.c
index
3073989
..
d159c7d
100644
(file)
--- a/
ir/adt/hashset.c
+++ b/
ir/adt/hashset.c
@@
-321,6
+321,7
@@
void reset_thresholds(HashSet *self)
self->consider_shrink = 0;
}
+#ifndef HAVE_OWN_RESIZE
/**
* Resize the hashset
* @internal
@@
-359,6
+360,12
@@
void resize(HashSet *self, size_t new_size)
/* now we can free the old array */
Free(old_entries);
}
+#else
+
+/* resize must be defined outside */
+static void resize(HashSet *self, size_t new_size);
+
+#endif
/**
* grow the hashset if adding 1 more elements would make it too crowded