[Crosstoolchain-logs] [device-tree-compiler] 337/357: Modification of lexer and parser, improving dtc portability.
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 5c8d2e2b57f50ff9a3d66e31032693e4273af85c
Author: Lukasz Wojcik <zbr at semihalf.com>
Date: Fri Jan 29 17:31:51 2010 +0100
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 <zbr at semihalf.com>
Acked-by: David Gibson <david at gibson.dropbear.id.au>
---
dtc-lexer.l | 1 +
dtc-parser.y | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dtc-lexer.l b/dtc-lexer.l
index 9021231..3c3434c 100644
--- a/dtc-lexer.l
+++ b/dtc-lexer.l
@@ -38,6 +38,7 @@ LINECOMMENT "//".*\n
#include "srcpos.h"
#include "dtc-parser.tab.h"
+YYLTYPE yylloc;
/* CAUTION: this will stop working if we ever use yyless() or yyunput() */
#define YY_USER_ACTION \
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 <stdio.h>
#include "dtc.h"
#include "srcpos.h"
+YYLTYPE yylloc;
+
extern int yylex(void);
extern void yyerror(char const *s);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list