diff mbox

[RFCv2,11/13] dtc: include the lexer from the parser

Message ID 1306138239-13440-12-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
Cc: David Gibson <david@gibson.dropbear.id.au>
---
 scripts/dtc/dtc-lexer.l  |    1 -
 scripts/dtc/dtc-parser.y |    2 ++
 2 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/scripts/dtc/dtc-lexer.l b/scripts/dtc/dtc-lexer.l
index e866ea5..9fc1a95 100644
--- a/scripts/dtc/dtc-lexer.l
+++ b/scripts/dtc/dtc-lexer.l
@@ -36,7 +36,6 @@  LINECOMMENT	"//".*\n
 %{
 #include "dtc.h"
 #include "srcpos.h"
-#include "dtc-parser.tab.h"
 
 YYLTYPE yylloc;
 
diff --git a/scripts/dtc/dtc-parser.y b/scripts/dtc/dtc-parser.y
index 5e84a67..42bd7a3 100644
--- a/scripts/dtc/dtc-parser.y
+++ b/scripts/dtc/dtc-parser.y
@@ -343,3 +343,5 @@  static unsigned long long eval_literal(const char *s, int base, int bits)
 		print_error("bad literal");
 	return val;
 }
+
+#include "dtc-lexer.lex.c"