MCPcopy Create free account
hub / github.com/Entware/Entware / set_all_choice_values

Function set_all_choice_values

scripts/config/confdata.c:1270–1288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1268}
1269
1270void set_all_choice_values(struct symbol *csym)
1271{
1272 struct property *prop;
1273 struct symbol *sym;
1274 struct expr *e;
1275
1276 prop = sym_get_choice_prop(csym);
1277
1278 /*
1279 * Set all non-assinged choice values to no
1280 */
1281 expr_list_for_each_sym(prop->expr, e, sym) {
1282 if (!sym_has_value(sym))
1283 sym->def[S_DEF_USER].tri = no;
1284 }
1285 csym->flags |= SYMBOL_DEF_USER;
1286 /* clear VALID to get value calculated */
1287 csym->flags &= ~(SYMBOL_VALID | SYMBOL_NEED_SET_CHOICE_VALUES);
1288}

Callers 2

sym_calc_valueFunction · 0.85
conf_set_all_new_symbolsFunction · 0.85

Calls 2

sym_get_choice_propFunction · 0.85
sym_has_valueFunction · 0.85

Tested by

no test coverage detected