Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/scripts/kconfig/conf.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/scripts/kconfig/conf.c
r2725 r3232 3 3 * Released under the terms of the GNU GPL v2.0. 4 4 */ 5 6 #define _XOPEN_SOURCE 700 5 7 6 8 #include <ctype.h> … … 172 174 { 173 175 struct symbol *sym = menu->sym; 174 const char *def , *help;176 const char *def; 175 177 176 178 while (1) { … … 187 189 /* print help */ 188 190 if (line[1] == '\n') { 189 help = nohelp_text; 190 if (menu->sym->help) 191 help = menu->sym->help; 192 printf("\n%s\n", menu->sym->help); 191 printf("\n%s\n", menu->sym->help ? menu->sym->help : nohelp_text); 193 192 def = NULL; 194 193 break; … … 206 205 { 207 206 struct symbol *sym = menu->sym; 208 int type;209 207 tristate oldval, newval; 210 208 const char *help; … … 214 212 if (sym->name) 215 213 printf("(%s) ", sym->name); 216 type = sym_get_type(sym);217 214 putchar('['); 218 215 oldval = sym_get_tristate_value(sym); … … 281 278 struct symbol *sym, *def_sym; 282 279 struct menu *child; 283 int type;284 280 bool is_new; 285 281 286 282 sym = menu->sym; 287 type = sym_get_type(sym);288 283 is_new = !sym_has_value(sym); 289 284 if (sym_is_changable(sym)) {
Note:
See TracChangeset
for help on using the changeset viewer.