| 339 | |
| 340 | #ifdef WINCHAIN |
| 341 | void |
| 342 | addto_windowchain(const char *s) |
| 343 | { |
| 344 | int i; |
| 345 | |
| 346 | for (i = 0; winchoices[i].procs; i++) { |
| 347 | if ('+' != winchoices[i].procs->name[0]) |
| 348 | continue; |
| 349 | if (!strcmpi(s, winchoices[i].procs->name)) { |
| 350 | struct winlink *p = wl_new(); |
| 351 | |
| 352 | p->wincp = &winchoices[i]; |
| 353 | wl_addtail(p); |
| 354 | /* NB: The ini_routine() will be called during commit. */ |
| 355 | return; |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | windowprocs.win_raw_print = def_raw_print; |
| 360 | |
| 361 | raw_printf("Window processor %s not recognized. Choices are:", s); |
| 362 | for (i = 0; winchoices[i].procs; i++) { |
| 363 | if ('+' != winchoices[i].procs->name[0]) |
| 364 | continue; |
| 365 | raw_printf(" %s", winchoices[i].procs->name); |
| 366 | } |
| 367 | |
| 368 | nh_terminate(EXIT_FAILURE); |
| 369 | } |
| 370 | |
| 371 | void |
| 372 | commit_windowchain(void) |
no test coverage detected