projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed inline to INLINE
[libfirm]
/
ir
/
adt
/
eset.h
diff --git
a/ir/adt/eset.h
b/ir/adt/eset.h
index
79c4d95
..
14a6eff
100644
(file)
--- 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.
/**
* "eset" is a set of addresses. The addresses are used for element
* compare and hash calculation.
- * The value "NULL" c
ould
not be stored, as it is used as internal sentinel.
+ * The value "NULL" c
an
not be stored, as it is used as internal sentinel.
*/
typedef struct eset eset;
*/
typedef struct eset eset;
@@
-24,16
+24,19
@@
typedef struct eset eset;
eset *eset_create(void);
/**
eset *eset_create(void);
/**
- * Creates a copy of the given set. D
id
NOT work if NULL is contained in source. */
+ * Creates a copy of the given set. D
oes
NOT work if NULL is contained in source. */
eset *eset_copy(eset *source);
/** Deletes a set. */
void eset_destroy(eset *s);
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);
/** Inserts an address into the set. */
void eset_insert(eset *s, void *p);
-/** Checks, whe
at
er an address is element of a set. */
+/** Checks, whe
th
er an address is element of a set. */
int eset_contains(eset *s, void *p);
/**
int eset_contains(eset *s, void *p);
/**
@@
-52,7
+55,7
@@
void *eset_first(eset *s);
*/
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. */
+/** Inserts all elements of source into target (union).
Does
NOT work if NULL is contained in source. */
void eset_insert_all(eset *target, eset *source);
#endif /* _ESET_H_ */
void eset_insert_all(eset *target, eset *source);
#endif /* _ESET_H_ */