Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373703
b: refs/heads/master
c: 23a5dfd
h: refs/heads/master
i:
  373701: b3e121a
  373699: 778ffbc
  373695: a250d99
v: v3
  • Loading branch information
Yann E. MORIN committed Apr 26, 2013
1 parent 8a4cc29 commit ce40ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e43956e607692f9b1c710311e4a6591ffba1edf0
refs/heads/master: 23a5dfdad22a574d19d7cc19b391f9ce0d3c2f21
7 changes: 3 additions & 4 deletions trunk/scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ int conf_read_simple(const char *name, int def)
for_all_symbols(i, sym) {
sym->flags |= SYMBOL_CHANGED;
sym->flags &= ~(def_flags|SYMBOL_VALID);
if (sym_is_choice(sym))
sym->flags |= def_flags;
switch (sym->type) {
case S_INT:
case S_HEX:
Expand Down Expand Up @@ -377,13 +379,13 @@ int conf_read_simple(const char *name, int def)
case mod:
if (cs->def[def].tri == yes) {
conf_warning("%s creates inconsistent choice state", sym->name);
cs->flags &= ~def_flags;
}
break;
case yes:
if (cs->def[def].tri != no)
conf_warning("override: %s changes choice state", sym->name);
cs->def[def].val = sym;
cs->flags |= def_flags;
break;
}
cs->def[def].tri = EXPR_OR(cs->def[def].tri, sym->def[def].tri);
Expand Down Expand Up @@ -789,8 +791,6 @@ int conf_write(const char *name)
sym_calc_value(sym);
if (!(sym->flags & SYMBOL_WRITE))
goto next;
if (sym_is_choice_value(sym) && !menu_is_visible(menu->parent))
goto next;
sym->flags &= ~SYMBOL_WRITE;

conf_write_symbol(out, sym, &kconfig_printer_cb, NULL);
Expand Down Expand Up @@ -1077,7 +1077,6 @@ static void randomize_choice_values(struct symbol *csym)
else {
sym->def[S_DEF_USER].tri = no;
}
sym->flags &= ~(SYMBOL_VALID);
}
csym->flags |= SYMBOL_DEF_USER;
/* clear VALID to get value calculated */
Expand Down

0 comments on commit ce40ccd

Please sign in to comment.