+ * Iterate items matching a given type.
+ *
+ * @param item
+ * The item that will be set at each iteration.
+ * @param comp
+ * The completion list.
+ * @param type
+ * A logical OR of flags among EC_COMP_UNKNOWN, EC_COMP_PARTIAL and
+ * EC_COMP_FULL, to select the type to iterate.