-static void uci_parse_option(struct uci_context *ctx, char **str)
-{
- struct uci_parse_context *pctx = ctx->pctx;
- char *name = NULL;
- char *value = NULL;
-
- if (!pctx->section)
- uci_parse_error(ctx, *str, "option command found before the first section");
-
- /* command string null-terminated by strtok */
- *str += strlen(*str) + 1;
-
- name = next_arg(ctx, str, true, true);
- value = next_arg(ctx, str, false, false);
- assert_eol(ctx, str);
-
- if (pctx->merge) {
- UCI_NESTED(uci_set, ctx, pctx->package, pctx->section->e.name, name, value, NULL);
- } else
- uci_alloc_option(pctx->section, name, value);
-}
-
-static void uci_parse_list(struct uci_context *ctx, char **str)