kconfig: split the lexer out of zconf.y
[carl9170fw.git] / config / zconf.l
index 8d4ac8c68f5e09627375835c8e3fe166f423ad3d..c52cce8b3751bb4d034e0a68ac13aa46188647aa 100644 (file)
@@ -1,11 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
+ */
 %option nostdinit noyywrap never-interactive full ecs
 %option 8bit nodefault yylineno
 %x ASSIGN_VAL HELP STRING
 %{
-/*
- * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
- * Released under the terms of the GNU GPL v2.0.
- */
 
 #include <assert.h>
 #include <limits.h>
@@ -15,6 +15,7 @@
 #include <unistd.h>
 
 #include "lkc.h"
+#include "zconf.tab.h"
 
 #define YY_DECL                static int yylex1(void)