aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/kconfig/parser.go
Commit message (Collapse)AuthorAgeFilesLines
* all: use any instead of interface{}Dmitry Vyukov2025-12-221-1/+1
| | | | Any is the preferred over interface{} now in Go.
* pkg/kconfig: accept \n as valid within quoted stringMarco Elver2022-05-051-1/+1
| | | | | | | | | | | | | | | | linux-next contains "Kconfig: Add option for asm goto w/ tied outputs to workaround clang-13 bug", which added this elaborate config variable to init/Kconfig: | config CC_HAS_ASM_GOTO_TIED_OUTPUT | depends on CC_HAS_ASM_GOTO_OUTPUT | # Detect buggy gcc and clang, fixed in gcc-11 clang-14. | def_bool $(success,echo 'int foo(int *x) { asm goto (".long (%l[bar]) - .\n": "+m"(*x) ::: bar); return *x; bar: return 0; }' | $CC -x c - -c -o /dev/null) The current validation in parser.go will complain with "bad quoted character", because of the '\n' in the quoted string. Fix it by allowing '\n'.
* pkg/kconfig: add packageDmitry Vyukov2020-10-211-0/+207
kconfig package is supposed to parse Kconfig/.config files and provide some algorithms on top. This commit includes only parser helper and expression parsing for starters. Update #2171