]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kconfig: nconf: refactor attributes setup code
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 10 Apr 2021 19:45:34 +0000 (04:45 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 Apr 2021 00:44:50 +0000 (09:44 +0900)
commit8585ed0c44a49d1804a2e6458a0d4fc3b45d2f43
tree78259ccfea204a7c3fb8130d4efe795ecdf17383
parentc7c11dd5f99623c49f5a39d2f4dad9462eb16377
kconfig: nconf: refactor attributes setup code

The current attributes setup code is strange; the array attribute[]
is set to values outside the range of the attribute_t enum.

At least,

  attributes_t attributes[ATTR_MAX+1] = {0};

... should be

  int attribute[ATTR_MAX+1] = {0};

Also, there is no need to hard-code the color-pair numbers in
attributes_t.

The current code is horribly screwed up. Rewrite it.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/nconf.c
scripts/kconfig/nconf.gui.c
scripts/kconfig/nconf.h