------- Comment #22 from tbm at cyrius dot com 2007-03-09 19:34 ------- Testcase based on conf.i:
struct symbol { char *help; }; struct menu { struct menu *next; struct menu *list; struct symbol *sym; }; enum { ask_all, } input_mode = ask_all; static char line[128]; static char nohelp_text[] = ("Sorry, no help available for this option yet.\n"); conf_choice (struct menu *menu) { struct menu *child; while (1) { int cnt, def; conf_childs:for (child = menu->list; child; child = child->next) { if (!child->sym || !menu_is_visible (child)) if (!--cnt) break; } if (!child) continue; if (line[strlen (line) - 1] == '?') { printf ("\n%s\n", child->sym->help ? child->sym->help : ""); continue; } return 1; } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29922