projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** empty log message ***
[libfirm]
/
ir
/
adt
/
eset.c
diff --git
a/ir/adt/eset.c
b/ir/adt/eset.c
index
ad1b869
..
6dd23a9
100644
(file)
--- a/
ir/adt/eset.c
+++ b/
ir/adt/eset.c
@@
-49,6
+49,10
@@
void eset_destroy(eset *s) {
del_set((set *)s);
}
del_set((set *)s);
}
+/* Returns the number of elements in the set. */
+int eset_count(eset *s) {
+ return set_count((set *)s);
+}
void eset_insert(eset *s, void *p) {
if (!eset_contains(s, p)) {
void eset_insert(eset *s, void *p) {
if (!eset_contains(s, p)) {
@@
-57,7
+61,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;
}
return set_find((set *)s, &p, sizeof(p), HASH_PTR(p)) != NULL;
}