Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/scripts/kconfig
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- Location:
- branches/3.2/mindi-busybox/scripts/kconfig
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/scripts/kconfig/Makefile
r2725 r3232 88 88 89 89 %_defconfig: $(obj)/conf 90 $(Q)$< -D $@ Config.in90 $(Q)$< -D configs/$@ Config.in 91 91 $(MTIME_IS_COARSE) && sleep 1 92 92 -
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)) { -
branches/3.2/mindi-busybox/scripts/kconfig/lxdialog/textbox.c
r1765 r3232 39 39 int i, x, y, cur_x, cur_y, fpos, key = 0; 40 40 int passed_end; 41 char search_term[MAX_LEN + 1];42 41 WINDOW *dialog, *text; 43 44 search_term[0] = '\0'; /* no search term entered yet */45 42 46 43 /* Open input file for reading */ … … 438 435 static void print_line(WINDOW * win, int row, int width) 439 436 { 440 int y, x;441 437 char *line; 442 438 … … 447 443 waddnstr(win, line, MIN(strlen(line), width - 2)); 448 444 449 getyx(win, y, x);450 445 /* Clear 'residue' of previous line */ 451 446 #if OLD_NCURSES 452 447 { 453 448 int i; 449 int y, x; 450 451 getyx(win, y, x); 454 452 for (i = 0; i < width - x; i++) 455 453 waddch(win, ' '); -
branches/3.2/mindi-busybox/scripts/kconfig/mconf.c
r2859 r3232 8 8 * i18n, 2005, Arnaldo Carvalho de Melo <acme@conectiva.com.br> 9 9 */ 10 11 #define _XOPEN_SOURCE 700 12 /* On Darwin, this may be needed to get SIGWINCH: */ 13 #define _DARWIN_C_SOURCE 1 10 14 11 15 #include <sys/ioctl.h> … … 19 23 #include <stdlib.h> 20 24 #include <string.h> 25 #include <strings.h> /* for strcasecmp */ 21 26 #include <termios.h> 22 27 #include <unistd.h> … … 441 446 pid_t pid; 442 447 448 #ifdef SIGWINCH 443 449 static void winch_handler(int sig) 444 450 { … … 448 454 } 449 455 } 456 #endif 450 457 451 458 static int exec_conf(void) 452 459 { 453 460 int pipefd[2], stat, size; 454 struct sigaction sa;455 461 sigset_t sset, osset; 456 462 … … 461 467 signal(SIGINT, SIG_DFL); 462 468 463 sa.sa_handler = winch_handler; 464 sigemptyset(&sa.sa_mask); 465 sa.sa_flags = SA_RESTART; 466 sigaction(SIGWINCH, &sa, NULL); 469 #ifdef SIGWINCH 470 { 471 struct sigaction sa; 472 sa.sa_handler = winch_handler; 473 sigemptyset(&sa.sa_mask); 474 sa.sa_flags = SA_RESTART; 475 sigaction(SIGWINCH, &sa, NULL); 476 } 477 #endif 467 478 468 479 *argptr++ = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.