OSDN Git Service

kconfig: rename a variable in the lexer to a clearer name
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 27 Sep 2021 12:54:37 +0000 (21:54 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 29 Sep 2021 17:08:59 +0000 (02:08 +0900)
commit6988f70cf105e70b4ea424d320521a9ed452fe46
tree13c96992a542a303fb91c51de9cc7725da289a16
parent65017d8381e2425a1b4cdc4681fadc179635c000
kconfig: rename a variable in the lexer to a clearer name

In Kconfig, like Python, you can enclose a string by double-quotes or
single-quotes. So, both "foo" and 'foo' are allowed.

The variable, "str", is used to remember whether the string started with
a double-quote or a single-quote because open/closing quotation marks
must match.

The name "str" is too generic to understand the intent. Rename it to
"open_quote", which is easier to understand. The type should be 'char'.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Boris Kolpackov <boris@codesynthesis.com>
scripts/kconfig/lexer.l