aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/config/lexer.l
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2021-11-24 18:25:43 -0300
committerPetr Štetiar <ynezz@true.cz>2022-02-19 13:10:01 +0100
commit009293c52e637612cd118717a1bea4e142889e09 (patch)
treec9f190a622ce0a6335875c561af5cdc2918b53ff /scripts/config/lexer.l
parent73ea763c0dcdb96c9163790f20edd964399035c0 (diff)
downloadupstream-009293c52e637612cd118717a1bea4e142889e09.tar.gz
upstream-009293c52e637612cd118717a1bea4e142889e09.tar.bz2
upstream-009293c52e637612cd118717a1bea4e142889e09.zip
build: scripts/config - update to kconfig-v5.14
Functional Changes ---------- ------- - make 'imply' not impose any restrictions: allow symbols implied by y to become m - change "modules" from sub-option to first-level attribute Bugfixes -------- - nconf: fix core dump when searching in empty menu - nconf: stop endless search loops - xconfig: fix content of the main widget - xconfig: fix support for the split view mode Other Changes ----- ------- - highlight xconfig 'comment' lines with '***' - xconfig: navigate menus on hyperlinks - xconfig: drop support for Qt4 - improve host ncurses detection Update the 'option modules' usage to just 'modules' in Config.in. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'scripts/config/lexer.l')
-rw-r--r--scripts/config/lexer.l8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/config/lexer.l b/scripts/config/lexer.l
index 575b679d30..0df51ec468 100644
--- a/scripts/config/lexer.l
+++ b/scripts/config/lexer.l
@@ -12,7 +12,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <glob.h>
#include <libgen.h>
@@ -38,7 +37,7 @@ struct buffer {
YY_BUFFER_STATE state;
};
-struct buffer *current_buf;
+static struct buffer *current_buf;
static int last_ts, first_ts;
@@ -94,7 +93,6 @@ n [A-Za-z0-9_-]
[ \t]* /* whitespaces */
\\\n /* escaped new line */
\n return T_EOL;
-"allnoconfig_y" return T_ALLNOCONFIG_Y;
"bool" return T_BOOL;
"choice" return T_CHOICE;
"comment" return T_COMMENT;
@@ -102,12 +100,11 @@ n [A-Za-z0-9_-]
"def_bool" return T_DEF_BOOL;
"def_tristate" return T_DEF_TRISTATE;
"default" return T_DEFAULT;
-"defconfig_list" return T_DEFCONFIG_LIST;
"depends" return T_DEPENDS;
"endchoice" return T_ENDCHOICE;
"endif" return T_ENDIF;
"endmenu" return T_ENDMENU;
-"help"|"---help---" return T_HELP;
+"help" return T_HELP;
"hex" return T_HEX;
"if" return T_IF;
"imply" return T_IMPLY;
@@ -117,7 +114,6 @@ n [A-Za-z0-9_-]
"menuconfig" return T_MENUCONFIG;
"modules" return T_MODULES;
"on" return T_ON;
-"option" return T_OPTION;
"optional" return T_OPTIONAL;
"prompt" return T_PROMPT;
"range" return T_RANGE;