diff mbox

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

Message ID 1306138239-13440-3-git-send-email-lacombar@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Arnaud Lacombe May 23, 2011, 8:10 a.m. UTC
---
 scripts/genksyms/lex.l   |    3 ---
 scripts/genksyms/parse.y |    2 ++
 2 files changed, 2 insertions(+), 3 deletions(-)
diff mbox

Patch

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"