save
[protos/libecoli.git] / lib / main-readline.c
index 7aef334..b8c6459 100644 (file)
@@ -54,7 +54,7 @@ static char *my_completion_entry(const char *s, int state)
 {
        static struct ec_completed *c;
        static struct ec_completed_iter *iter;
-       static const struct ec_completed_elt *elt;
+       static const struct ec_completed_item *item;
        char *out_string;
 
 
@@ -130,7 +130,7 @@ static char *get_node_help(const struct ec_completed_elt *elt)
 
 static int show_help(int ignore, int invoking_key)
 {
-       const struct ec_completed_elt *elt;
+       const struct ec_completed_item *item;
        struct ec_completed_iter *iter;
        struct ec_completed *c;
        struct ec_parsed *p;
@@ -173,10 +173,10 @@ static int show_help(int ignore, int invoking_key)
                goto fail;
 
        /* strangely, rl_display_match_list() expects first index at 1 */
-       for (i = match + 1, elt = ec_completed_iter_next(iter);
-            i < count + match + 1 && elt != NULL;
-            i++, elt = ec_completed_iter_next(iter)) {
-               helps[i] = get_node_help(elt);
+       for (i = match + 1, item = ec_completed_iter_next(iter);
+            i < count + match + 1 && item != NULL;
+            i++, item = ec_completed_iter_next(iter)) {
+               helps[i] = get_node_help(item);
        }
 
        ec_completed_free(c);