History

kconfig: Fix spelling of sym_is_changable

There is a spelling mistake in "changable", it is corrected to "changeable" and all call sites are updated accordingly.

Marco Ammon committed 7 years ago

Commit baa23ec1 parent a94a48b7 files · +17 −17Browse files

Showing the changes to scripts (7 of 7 files). Show all

Unified · Split

7 files
  1. scripts/kconfig/conf.c +3 −3
  2. scripts/kconfig/confdata.c +1 −1
  3. scripts/kconfig/lkc_proto.h +1 −1
  4. scripts/kconfig/mconf.c +5 −5
  5. scripts/kconfig/nconf.c +5 −5
  6. scripts/kconfig/qconf.cc +1 −1
  7. scripts/kconfig/symbol.c +1 −1
scripts/kconfig/conf.c+3−3
@@ -90,7 +90,7 @@ static int conf_askvalue(struct symbol *sym, const char *def) · 89 unmodified lines
9090 line[0] = '\n';
9191 line[1] = 0;
9292
93− if (!sym_is_changable(sym)) {
93+ if (!sym_is_changeable(sym)) {
9494 printf("%s\n", def);
9595 line[0] = '\n';
9696 line[1] = 0;
@@ -234,7 +234,7 @@ static int conf_choice(struct menu *menu) · 137 unmodified lines
234234
235235 sym = menu->sym;
236236 is_new = !sym_has_value(sym);
237− if (sym_is_changable(sym)) {
237+ if (sym_is_changeable(sym)) {
238238 conf_sym(menu);
239239 sym_calc_value(sym);
240240 switch (sym_get_tristate_value(sym)) {
@@ -418,7 +418,7 @@ static void check_conf(struct menu *menu) · 177 unmodified lines
418418
419419 sym = menu->sym;
420420 if (sym && !sym_has_value(sym)) {
421− if (sym_is_changable(sym) ||
421+ if (sym_is_changeable(sym) ||
422422 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
423423 if (input_mode == listnewconfig) {
424424 if (sym->name) {
scripts/kconfig/confdata.c+1−1
@@ -796,7 +796,7 @@ int conf_write_defconfig(const char *filename) · 795 unmodified lines
796796 goto next_menu;
797797 sym->flags &= ~SYMBOL_WRITE;
798798 /* If we cannot change the symbol - skip */
799− if (!sym_is_changable(sym))
799+ if (!sym_is_changeable(sym))
800800 goto next_menu;
801801 /* If symbol equals to default value - skip */
802802 if (strcmp(sym_get_string_value(sym), sym_get_string_default(sym)) == 0)
scripts/kconfig/lkc_proto.h+1−1
@@ -42,7 +42,7 @@ tristate sym_toggle_tristate_value(struct symbol *sym); · 41 unmodified lines
4242 bool sym_string_valid(struct symbol *sym, const char *newval);
4343 bool sym_string_within_range(struct symbol *sym, const char *str);
4444 bool sym_set_string_value(struct symbol *sym, const char *newval);
45−bool sym_is_changable(struct symbol *sym);
45+bool sym_is_changeable(struct symbol *sym);
4646 struct property * sym_get_choice_prop(struct symbol *sym);
4747 const char * sym_get_string_value(struct symbol *sym);
4848
scripts/kconfig/mconf.c+5−5
@@ -536,7 +536,7 @@ static void build_conf(struct menu *menu) · 535 unmodified lines
536536 }
537537
538538 val = sym_get_tristate_value(sym);
539− if (sym_is_changable(sym)) {
539+ if (sym_is_changeable(sym)) {
540540 switch (type) {
541541 case S_BOOLEAN:
542542 item_make("[%c]", val == no ? ' ' : '*');
@@ -587,7 +587,7 @@ static void build_conf(struct menu *menu) · 44 unmodified lines
587587 } else {
588588 switch (type) {
589589 case S_BOOLEAN:
590− if (sym_is_changable(sym))
590+ if (sym_is_changeable(sym))
591591 item_make("[%c]", val == no ? ' ' : '*');
592592 else
593593 item_make("-%c-", val == no ? ' ' : '*');
@@ -600,7 +600,7 @@ static void build_conf(struct menu *menu) · 6 unmodified lines
600600 case mod: ch = 'M'; break;
601601 default: ch = ' '; break;
602602 }
603− if (sym_is_changable(sym)) {
603+ if (sym_is_changeable(sym)) {
604604 if (sym->rev_dep.tri == mod)
605605 item_make("{%c}", ch);
606606 else
@@ -617,7 +617,7 @@ static void build_conf(struct menu *menu) · 10 unmodified lines
617617 if (tmp < 0)
618618 tmp = 0;
619619 item_add_str("%*c%s%s", tmp, ' ', menu_get_prompt(menu),
620− (sym_has_value(sym) || !sym_is_changable(sym)) ?
620+ (sym_has_value(sym) || !sym_is_changeable(sym)) ?
621621 "" : " (NEW)");
622622 item_set_tag('s');
623623 item_set_data(menu);
@@ -625,7 +625,7 @@ static void build_conf(struct menu *menu) · 1 unmodified line
625625 }
626626 }
627627 item_add_str("%*c%s%s", indent + 1, ' ', menu_get_prompt(menu),
628− (sym_has_value(sym) || !sym_is_changable(sym)) ?
628+ (sym_has_value(sym) || !sym_is_changeable(sym)) ?
629629 "" : " (NEW)");
630630 if (menu->prompt->type == P_MENU) {
631631 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->");
scripts/kconfig/nconf.c+5−5
@@ -803,7 +803,7 @@ static void build_conf(struct menu *menu) · 802 unmodified lines
803803 }
804804
805805 val = sym_get_tristate_value(sym);
806− if (sym_is_changable(sym)) {
806+ if (sym_is_changeable(sym)) {
807807 switch (type) {
808808 case S_BOOLEAN:
809809 item_make(menu, 't', "[%c]",
@@ -857,7 +857,7 @@ static void build_conf(struct menu *menu) · 47 unmodified lines
857857 } else {
858858 switch (type) {
859859 case S_BOOLEAN:
860− if (sym_is_changable(sym))
860+ if (sym_is_changeable(sym))
861861 item_make(menu, 't', "[%c]",
862862 val == no ? ' ' : '*');
863863 else
@@ -876,7 +876,7 @@ static void build_conf(struct menu *menu) · 12 unmodified lines
876876 ch = ' ';
877877 break;
878878 }
879− if (sym_is_changable(sym)) {
879+ if (sym_is_changeable(sym)) {
880880 if (sym->rev_dep.tri == mod)
881881 item_make(menu,
882882 't', "{%c}", ch);
@@ -896,14 +896,14 @@ static void build_conf(struct menu *menu) · 13 unmodified lines
896896 item_add_str("%*c%s%s", tmp, ' ',
897897 menu_get_prompt(menu),
898898 (sym_has_value(sym) ||
899− !sym_is_changable(sym)) ? "" :
899+ !sym_is_changeable(sym)) ? "" :
900900 " (NEW)");
901901 goto conf_childs;
902902 }
903903 }
904904 item_add_str("%*c%s%s", indent + 1, ' ',
905905 menu_get_prompt(menu),
906− (sym_has_value(sym) || !sym_is_changable(sym)) ?
906+ (sym_has_value(sym) || !sym_is_changeable(sym)) ?
907907 "" : " (NEW)");
908908 if (menu->prompt && menu->prompt->type == P_MENU) {
909909 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->");
scripts/kconfig/qconf.cc+1−1
@@ -152,7 +152,7 @@ void ConfigItem::updateMenu(void) · 151 unmodified lines
152152 case S_TRISTATE:
153153 char ch;
154154
155− if (!sym_is_changable(sym) && list->optMode == normalOpt) {
155+ if (!sym_is_changeable(sym) && list->optMode == normalOpt) {
156156 setPixmap(promptColIdx, QIcon());
157157 setText(noColIdx, QString::null);
158158 setText(modColIdx, QString::null);
scripts/kconfig/symbol.c+1−1
@@ -785,7 +785,7 @@ const char *sym_get_string_value(struct symbol *sym) · 784 unmodified lines
785785 return (const char *)sym->curr.val;
786786 }
787787
788−bool sym_is_changable(struct symbol *sym)
788+bool sym_is_changeable(struct symbol *sym)
789789 {
790790 return sym->visible > sym->rev_dep.tri;
791791 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t