updated for new hooks
[libfirm] / ir / adt / pmap.h
index 41ab920..7e66208 100644 (file)
@@ -1,20 +1,19 @@
-/* -------------------------------------------------------------------
- * $Id$
- * -------------------------------------------------------------------
- * Datentyp: Vereinfachte Map (hash-map) zum Speichern von
- * Zeigern/Adressen -> Zeigern/Adressen.
- *
- * Erstellt: Hubert Schmid, 09.06.2002
- * ---------------------------------------------------------------- */
-
+/*
+ * Project:     libFIRM
+ * File name:   ir/adt/eset.c
+ * Purpose:     Datentyp: Vereinfachte Map (hash-map) zum Speichern von
+ *              Zeigern/Adressen -> Zeigern/Adressen.
+ * Author:      Hubert Schmid
+ * Modified by:
+ * Created:     09.06.2002
+ * CVS-ID:      $Id$
+ * Copyright:   (c) 2002 Universität Karlsruhe
+ * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ */
 
 #ifndef _PMAP_H_
 #define _PMAP_H_
 
-
-#include "bool.h"
-
-
 /* Map die Adressen auf Adressen abbildet. Der Vergleich und das
  * Hashen findet über die Adresse statt. */
 
@@ -38,7 +37,7 @@ void pmap_destroy(pmap *);
 void pmap_insert(pmap *, void * key, void * value);
 
 /* Prüft ob ein Eintrag zu "key" exisitiert. */
-bool pmap_contains(pmap *, void * key);
+int pmap_contains(pmap *, void * key);
 
 /* Gibt den Eintrag zu "key" zurück. */
 pmap_entry * pmap_find(pmap *, void * key);
@@ -53,5 +52,6 @@ void * pmap_get(pmap *, void * key);
 pmap_entry * pmap_first(pmap *);
 pmap_entry * pmap_next(pmap *);
 
+void pmap_break(pmap *map);
 
 #endif /* _PMAP_H_ */