From 5c8d2e2b57f50ff9a3d66e31032693e4273af85c Mon Sep 17 00:00:00 2001 From: Lukasz Wojcik Date: Fri, 29 Jan 2010 17:31:51 +0100 Subject: Modification of lexer and parser, improving dtc portability. This mod allows successful build of dtc using both bison/flex and yacc/lex. Signed-off-by: Lukasz Wojcik Acked-by: David Gibson --- dtc-parser.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dtc-parser.y') diff --git a/dtc-parser.y b/dtc-parser.y index b7c7dbd..a2c0925 100644 --- a/dtc-parser.y +++ b/dtc-parser.y @@ -18,14 +18,14 @@ * USA */ -%locations - %{ #include #include "dtc.h" #include "srcpos.h" +YYLTYPE yylloc; + extern int yylex(void); extern void yyerror(char const *s); -- cgit v1.2.1