- fprintf(out, " type=%s str=<%s>\n", typestr, item->str);
- }
- }
-}
-
-char *ec_completed_smallest_start(const struct ec_completed *completed)
-{
- struct ec_completed_node *compnode;
- struct ec_completed_item *item;
- char *smallest_start = NULL;
- size_t n;
-
- if (completed == NULL)
- goto fail;
-
- TAILQ_FOREACH(compnode, &completed->nodes, next) {
- TAILQ_FOREACH(item, &compnode->items, next) {
- if (item->str == NULL)
- continue;
- if (smallest_start == NULL) {
- smallest_start = ec_strdup(item->str);
- if (smallest_start == NULL)
- goto fail;
- } else {
- n = strcmp_count(item->str, smallest_start);
- smallest_start[n] = '\0';
- }
+ fprintf(out, " type=%s str=<%s> disp=<%s>\n",
+ typestr, item->str, item->display);