| 599 | }; |
| 600 | |
| 601 | staticfn int |
| 602 | count_and_validate_winopts(void) |
| 603 | { |
| 604 | int i, cnt = 0; |
| 605 | |
| 606 | /* window_opts has a fencepost entry at the end */ |
| 607 | for (i = 0; i < SIZE(window_opts) - 1; i++) { |
| 608 | #if !defined(MAKEDEFS_C) && defined(FOR_RUNTIME) |
| 609 | #ifdef WIN32 |
| 610 | window_opts[i].valid = FALSE; |
| 611 | if ((GUILaunched |
| 612 | && case_insensitive_comp(window_opts[i].id, "curses") != 0 |
| 613 | && case_insensitive_comp(window_opts[i].id, "mswin") != 0) |
| 614 | || (!GUILaunched |
| 615 | && case_insensitive_comp(window_opts[i].id, "mswin") == 0)) |
| 616 | continue; |
| 617 | #endif |
| 618 | #endif /* !MAKEDEFS_C && FOR_RUNTIME */ |
| 619 | ++cnt; |
| 620 | window_opts[i].valid = TRUE; |
| 621 | } |
| 622 | return cnt; |
| 623 | } |
| 624 | |
| 625 | #if !defined(MAKEDEFS_C) |
| 626 | staticfn int |
no test coverage detected