X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Feset.h;h=fbdb5e0f13b7ce88409ecbcea1d35afa0a400fa7;hb=b9d11a19d0b84d6824633806283af13546ce495d;hp=79c4d95bcb63d75e37255787bbd5357b91570a9c;hpb=7678991c92030f755075b344c47ccfddc1c4959b;p=libfirm diff --git a/ir/adt/eset.h b/ir/adt/eset.h index 79c4d95bc..fbdb5e0f1 100644 --- a/ir/adt/eset.h +++ b/ir/adt/eset.h @@ -16,7 +16,7 @@ /** * "eset" is a set of addresses. The addresses are used for element * compare and hash calculation. - * The value "NULL" could not be stored, as it is used as internal sentinel. + * The value "NULL" can not be stored, as it is used as internal sentinel. */ typedef struct eset eset; @@ -24,16 +24,19 @@ typedef struct eset eset; eset *eset_create(void); /** - * Creates a copy of the given set. Did NOT work if NULL is contained in source. */ + * Creates a copy of the given set. Does NOT work if NULL is contained in source. */ eset *eset_copy(eset *source); /** Deletes a set. */ void eset_destroy(eset *s); +/** Returns the number of elements in the set. */ +int eset_count(eset *s); + /** Inserts an address into the set. */ void eset_insert(eset *s, void *p); -/** Checks, wheater an address is element of a set. */ +/** Checks, whether an address is element of a set. */ int eset_contains(eset *s, void *p); /**