- small indentation changes
[libfirm] / ir / adt / hashset.c
index b02acf3..d159c7d 100644 (file)
 #ifndef hashset_remove_iterator
 #error You have to redefine hashset_remove_iterator
 #endif
-#endif NO_ITERATOR
+#endif
 
 /**
  * Returns the number of elements in the hashset
@@ -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