removed bool
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 2 Dec 2004 16:13:33 +0000 (16:13 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 2 Dec 2004 16:13:33 +0000 (16:13 +0000)
[r4551]

ir/adt/eset.c
ir/adt/eset.h
ir/adt/pmap.c
ir/adt/pmap.h

index ad1b869..9ea922c 100644 (file)
@@ -57,7 +57,7 @@ void eset_insert(eset *s, void *p) {
 }
 
 
-bool eset_contains(eset *s, void *p) {
+int eset_contains(eset *s, void *p) {
   return set_find((set *)s, &p, sizeof(p), HASH_PTR(p)) != NULL;
 }
 
index a4cbb00..79c4d95 100644 (file)
  * Copyright:   (c) 2002 Universität Karlsruhe
  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
  */
-
-
 #ifndef _ESET_H_
 #define _ESET_H_
 
-#include <stdbool.h>
-
 /**
  * "eset" is a set of addresses. The addresses are used for element
  * compare and hash calculation.
 typedef struct eset eset;
 
 /** Creates a new empty set. */
-eset * eset_create(void);
+eset *eset_create(void);
 
 /**
  * Creates a copy of the given set. Did NOT work if NULL is contained in source. */
-eset * eset_copy(eset *source);
+eset *eset_copy(eset *source);
 
 /** Deletes a set. */
 void eset_destroy(eset *s);
@@ -38,7 +34,7 @@ void eset_destroy(eset *s);
 void eset_insert(eset *s, void *p);
 
 /** Checks, wheater an address is element of a set. */
-bool eset_contains(eset *s, void *p);
+int eset_contains(eset *s, void *p);
 
 /**
  * Starts the iteration over a set and returns the first element or NULL
@@ -46,7 +42,7 @@ bool eset_contains(eset *s, void *p);
  *
  * @note: It is NOT possible to add new elements while iterating through a set.
  */
-void * eset_first(eset *s);
+void *eset_first(eset *s);
 
 /**
  * Continues iteration through a set and returns the next element or NULL if the
@@ -54,9 +50,9 @@ void * eset_first(eset *s);
  *
  * @note: It is NOT possible to add new elements while iterating through a set.
  */
-void * eset_next(eset *s);
+void *eset_next(eset *s);
 
 /** Inserts all elements of source into target (union). Did NOT work if NULL is contained in source. */
-void eset_insert_all(eset * target, eset * source);
+void eset_insert_all(eset *target, eset *source);
 
 #endif /* _ESET_H_ */
index bd6a5c2..ffbe688 100644 (file)
@@ -57,7 +57,7 @@ void pmap_insert(pmap *map, void *key, void *value) {
 }
 
 
-bool pmap_contains(pmap *map, void *key) {
+int pmap_contains(pmap *map, void *key) {
   return set_find((set *)map, &key, sizeof(pmap_entry), HASH_PTR(key)) != NULL;
 }
 
index b7723e2..c15120f 100644 (file)
 #ifndef _PMAP_H_
 #define _PMAP_H_
 
-
-#include <stdbool.h>
-
-
 /* Map die Adressen auf Adressen abbildet. Der Vergleich und das
  * Hashen findet über die Adresse statt. */
 
@@ -41,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);