X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=config%2Fzconf.y;h=4dad8e5c620b1012e089f5486e491661a27fdcaf;hb=f1d8c09f9170437ba1b86ba0cd77b7b3680a673c;hp=dae149812cbc44c552a556a9ea760d4f57d0231a;hpb=2d2c41c2a3de84a2820bcb10988b4e66d654e227;p=carl9170fw.git diff --git a/config/zconf.y b/config/zconf.y index dae1498..4dad8e5 100644 --- a/config/zconf.y +++ b/config/zconf.y @@ -431,6 +431,11 @@ help_start: T_HELP T_EOL help: help_start T_HELPTEXT { + if (current_entry->help) { + free(current_entry->help); + zconfprint("warning: '%s' defined with more than one help text -- only the last one will be used", + current_entry->sym->name ?: ""); + } current_entry->help = $2; }; @@ -640,7 +645,7 @@ static void print_symbol(FILE *out, struct menu *menu) fprintf(out, "\nconfig %s\n", sym->name); switch (sym->type) { case S_BOOLEAN: - fputs(" boolean\n", out); + fputs(" bool\n", out); break; case S_TRISTATE: fputs(" tristate\n", out);