* The abstract type of a pset (Set of pointers).
*
* This kind of sets stores only pointer to elements, the elements itself
- * must be stored somewere else.
+ * must be stored somewhere else.
*
* @see set
*/
*
* @remark
* The current implementation did not allow to remove non-existing elements.
+ * @@@ so, does it do now?
* Further, it is allowed to remove elements during an iteration
* including the current one.
*/
*/
void pset_break (pset *pset);
+/**
+ * Iterates oven an pset.
+ *
+ * @param pset the pset
+ * @param entry the iterator
+ */
+#define foreach_pset(pset, entry) for (entry = pset_first(pset); entry; entry = pset_next(pset))
+
/**
* Inserts all elements of the pointer set src into
* the set target (union).