| 6787 | } |
| 6788 | |
| 6789 | staticfn void |
| 6790 | complain_about_duplicate(int optidx) |
| 6791 | { |
| 6792 | char buf[BUFSZ]; |
| 6793 | |
| 6794 | #ifdef MACOS9 |
| 6795 | /* the Mac has trouble dealing with the output of messages while |
| 6796 | * processing the config file. That should get fixed one day. |
| 6797 | * For now just return. |
| 6798 | */ |
| 6799 | #else /* !MACOS9 */ |
| 6800 | buf[0] = '\0'; |
| 6801 | if (using_alias) |
| 6802 | Sprintf(buf, " (via alias: %s)", allopt[optidx].alias); |
| 6803 | config_error_add("%s option specified multiple times: %s%s", |
| 6804 | (allopt[optidx].opttyp == CompOpt) ? "compound" |
| 6805 | : "boolean", |
| 6806 | allopt[optidx].name, buf); |
| 6807 | #endif /* ?MACOS9 */ |
| 6808 | return; |
| 6809 | } |
| 6810 | |
| 6811 | staticfn void |
| 6812 | rejectoption(const char *optname) |
no test coverage detected