Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/28288
Change subject: util/kconfig: Fix typo ......................................................................
util/kconfig: Fix typo
Change-Id: I02063c1d4e76f0c55937da7a309c0f668bc0e064 Signed-off-by: Elyes HAOUAS ehaouas@noos.fr --- M util/kconfig/conf.c M util/kconfig/confdata.c M util/kconfig/gconf.c M util/kconfig/kxgettext.c M util/kconfig/lkc_proto.h M util/kconfig/mconf.c M util/kconfig/nconf.c M util/kconfig/qconf.cc M util/kconfig/symbol.c 9 files changed, 21 insertions(+), 21 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/88/28288/1
diff --git a/util/kconfig/conf.c b/util/kconfig/conf.c index 7aae1c7..1e704a6 100644 --- a/util/kconfig/conf.c +++ b/util/kconfig/conf.c @@ -93,7 +93,7 @@ line[0] = '\n'; line[1] = 0;
- if (!sym_is_changable(sym)) { + if (!sym_is_changeable(sym)) { printf("%s\n", def); line[0] = '\n'; line[1] = 0; @@ -242,7 +242,7 @@
sym = menu->sym; is_new = !sym_has_value(sym); - if (sym_is_changable(sym)) { + if (sym_is_changeable(sym)) { conf_sym(menu); sym_calc_value(sym); switch (sym_get_tristate_value(sym)) { @@ -429,7 +429,7 @@
sym = menu->sym; if (sym && !sym_has_value(sym)) { - if (sym_is_changable(sym) || + if (sym_is_changeable(sym) || (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) { if (input_mode == listnewconfig) { if (sym->name && !sym_is_choice_value(sym)) { diff --git a/util/kconfig/confdata.c b/util/kconfig/confdata.c index fc4a07a..a9051fa 100644 --- a/util/kconfig/confdata.c +++ b/util/kconfig/confdata.c @@ -718,7 +718,7 @@ goto next_menu; sym->flags &= ~SYMBOL_WRITE; /* If we cannot change the symbol - skip */ - if (!sym_is_changable(sym)) + if (!sym_is_changeable(sym)) goto next_menu; /* If symbol equals to default value - skip */ if (strcmp(sym_get_string_value(sym), sym_get_string_default(sym)) == 0) diff --git a/util/kconfig/gconf.c b/util/kconfig/gconf.c index faa1c59..f0291c4 100644 --- a/util/kconfig/gconf.c +++ b/util/kconfig/gconf.c @@ -40,7 +40,7 @@ static gboolean show_name = TRUE; static gboolean show_range = TRUE; static gboolean show_value = TRUE; -static gboolean resizeable = FALSE; +static gboolean resizable = FALSE; static int opt_mode = OPT_NORMAL;
GtkWidget *main_wnd = NULL; @@ -375,7 +375,7 @@ column = gtk_tree_view_get_column(view, COL_VALUE); gtk_tree_view_column_set_visible(column, show_value);
- if (resizeable) { + if (resizable) { for (i = 0; i < COL_VALUE; i++) { column = gtk_tree_view_get_column(view, i); gtk_tree_view_column_set_resizable(column, TRUE); diff --git a/util/kconfig/kxgettext.c b/util/kconfig/kxgettext.c index 2858738..907eae8 100644 --- a/util/kconfig/kxgettext.c +++ b/util/kconfig/kxgettext.c @@ -117,7 +117,7 @@ goto out; }
-static struct message *mesage__find(const char *msg) +static struct message *message__find(const char *msg) { struct message *m = message__list;
@@ -152,7 +152,7 @@ int rc = 0; char bf[16384]; char *escaped = escape(msg, bf, sizeof(bf)); - struct message *m = mesage__find(escaped); + struct message *m = message__find(escaped);
if (m != NULL) rc = message__add_file_line(m, file, lineno); diff --git a/util/kconfig/lkc_proto.h b/util/kconfig/lkc_proto.h index ecdb965..a6e30c7 100644 --- a/util/kconfig/lkc_proto.h +++ b/util/kconfig/lkc_proto.h @@ -45,7 +45,7 @@ P(sym_string_valid,bool,(struct symbol *sym, const char *newval)); P(sym_string_within_range,bool,(struct symbol *sym, const char *str)); P(sym_set_string_value,bool,(struct symbol *sym, const char *newval)); -P(sym_is_changable,bool,(struct symbol *sym)); +P(sym_is_changeable,bool,(struct symbol *sym)); P(sym_get_choice_prop,struct property *,(struct symbol *sym)); P(sym_get_default_prop,struct property *,(struct symbol *sym)); P(sym_get_string_value,const char *,(struct symbol *sym)); diff --git a/util/kconfig/mconf.c b/util/kconfig/mconf.c index 7e5dc76..81eebba 100644 --- a/util/kconfig/mconf.c +++ b/util/kconfig/mconf.c @@ -539,7 +539,7 @@ }
val = sym_get_tristate_value(sym); - if (sym_is_changable(sym)) { + if (sym_is_changeable(sym)) { switch (type) { case S_BOOLEAN: item_make("[%c]", val == no ? ' ' : '*'); @@ -590,7 +590,7 @@ } else { switch (type) { case S_BOOLEAN: - if (sym_is_changable(sym)) + if (sym_is_changeable(sym)) item_make("[%c]", val == no ? ' ' : '*'); else item_make("-%c-", val == no ? ' ' : '*'); @@ -603,7 +603,7 @@ case mod: ch = 'M'; break; default: ch = ' '; break; } - if (sym_is_changable(sym)) { + if (sym_is_changeable(sym)) { if (sym->rev_dep.tri == mod) item_make("{%c}", ch); else @@ -620,7 +620,7 @@ if (tmp < 0) tmp = 0; item_add_str("%*c%s%s", tmp, ' ', _(menu_get_prompt(menu)), - (sym_has_value(sym) || !sym_is_changable(sym)) ? + (sym_has_value(sym) || !sym_is_changeable(sym)) ? "" : _(" (NEW)")); item_set_tag('s'); item_set_data(menu); @@ -628,7 +628,7 @@ } } item_add_str("%*c%s%s", indent + 1, ' ', _(menu_get_prompt(menu)), - (sym_has_value(sym) || !sym_is_changable(sym)) ? + (sym_has_value(sym) || !sym_is_changeable(sym)) ? "" : _(" (NEW)")); if (menu->prompt->type == P_MENU) { item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); diff --git a/util/kconfig/nconf.c b/util/kconfig/nconf.c index 905dcd1..35c397f 100644 --- a/util/kconfig/nconf.c +++ b/util/kconfig/nconf.c @@ -814,7 +814,7 @@ }
val = sym_get_tristate_value(sym); - if (sym_is_changable(sym)) { + if (sym_is_changeable(sym)) { switch (type) { case S_BOOLEAN: item_make(menu, 't', "[%c]", @@ -868,7 +868,7 @@ } else { switch (type) { case S_BOOLEAN: - if (sym_is_changable(sym)) + if (sym_is_changeable(sym)) item_make(menu, 't', "[%c]", val == no ? ' ' : '*'); else @@ -887,7 +887,7 @@ ch = ' '; break; } - if (sym_is_changable(sym)) { + if (sym_is_changeable(sym)) { if (sym->rev_dep.tri == mod) item_make(menu, 't', "{%c}", ch); @@ -907,14 +907,14 @@ item_add_str("%*c%s%s", tmp, ' ', _(menu_get_prompt(menu)), (sym_has_value(sym) || - !sym_is_changable(sym)) ? "" : + !sym_is_changeable(sym)) ? "" : _(" (NEW)")); goto conf_childs; } } item_add_str("%*c%s%s", indent + 1, ' ', _(menu_get_prompt(menu)), - (sym_has_value(sym) || !sym_is_changable(sym)) ? + (sym_has_value(sym) || !sym_is_changeable(sym)) ? "" : _(" (NEW)")); if (menu->prompt && menu->prompt->type == P_MENU) { item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); diff --git a/util/kconfig/qconf.cc b/util/kconfig/qconf.cc index e787117..972326c 100644 --- a/util/kconfig/qconf.cc +++ b/util/kconfig/qconf.cc @@ -155,7 +155,7 @@ case S_TRISTATE: char ch;
- if (!sym_is_changable(sym) && list->optMode == normalOpt) { + if (!sym_is_changeable(sym) && list->optMode == normalOpt) { setPixmap(promptColIdx, QIcon()); setText(noColIdx, QString::null); setText(modColIdx, QString::null); diff --git a/util/kconfig/symbol.c b/util/kconfig/symbol.c index af49439..b969616 100644 --- a/util/kconfig/symbol.c +++ b/util/kconfig/symbol.c @@ -792,7 +792,7 @@ return (const char *)sym->curr.val; }
-bool sym_is_changable(struct symbol *sym) +bool sym_is_changeable(struct symbol *sym) { return sym->visible > sym->rev_dep.tri; }