| 229 | #endif /* HAVE_COMMANDLINETOARGVW */ |
| 230 | |
| 231 | static int opt_has_arg(const OptionDef *o) |
| 232 | { |
| 233 | if (o->type == OPT_TYPE_BOOL) |
| 234 | return 0; |
| 235 | if (o->type == OPT_TYPE_FUNC) |
| 236 | return !!(o->flags & OPT_FUNC_ARG); |
| 237 | return 1; |
| 238 | } |
| 239 | |
| 240 | static int write_option(void *optctx, const OptionDef *po, const char *opt, |
| 241 | const char *arg, const OptionDef *defs) |
no outgoing calls
no test coverage detected