[RFCv2 02/13] genksyms: include the lexer from the parser

Arnaud Lacombe
2011-05-23T08:11:05Z

---
scripts/genksyms/lex.l | 3 ---
scripts/genksyms/parse.y | 2 ++
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/scripts/genksyms/lex.l b/scripts/genksyms/lex.l
index e4ddd49..adf75b6 100644
--- a/scripts/genksyms/lex.l
+++ b/scripts/genksyms/lex.l
@@ -28,9 +28,6 @@
#include <string.h>
#include <ctype.h>

-#include "genksyms.h"
-#include "parse.h"
-
/* We've got a two-level lexer here. We let flex do basic tokenization
and then we categorize those basic tokens in the second stage. */
#define YY_DECL static int yylex1(void)
diff --git a/scripts/genksyms/parse.y b/scripts/genksyms/parse.y
index ba5c242..c15e353 100644
--- a/scripts/genksyms/parse.y
+++ b/scripts/genksyms/parse.y
@@ -497,3 +497,5 @@ yyerror(const char *e)
{
error_with_pos("%s", e);
}
+
+#include "lex.lex.c"
--
1.7.3.4.574.g608b.dirty