diff options
author | Lukasz Wojcik <zbr@semihalf.com> | 2010-01-29 17:31:51 +0100 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2010-02-08 09:29:52 -0600 |
commit | 5c8d2e2b57f50ff9a3d66e31032693e4273af85c (patch) | |
tree | 5ede1e57c29ea09425410a69e5a43d3ebc03faff /dtc-lexer.l | |
parent | c6225f86fd7fe2c46ba30203e0582900e2260f9c (diff) | |
download | device-tree-compiler-5c8d2e2b57f50ff9a3d66e31032693e4273af85c.tar.gz |
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@semihalf.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc-lexer.l')
-rw-r--r-- | dtc-lexer.l | 1 |
1 files changed, 1 insertions, 0 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 \ |