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

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

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 --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"
--
1.7.3.4.574.g608b.dirty