aboutsummaryrefslogtreecommitdiff
path: root/contrib/dtc
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@FreeBSD.org>2010-02-28 22:06:07 +0000
committerRafal Jaworowski <raj@FreeBSD.org>2010-02-28 22:06:07 +0000
commit4ad163239aa6609c1d1551917658d3320c417d80 (patch)
tree4a31639812bfc30d9bf2870599f134c23bd16459 /contrib/dtc
parent21fdc27a054f668c8b6c2be503fa68622e5226da (diff)
downloadsrc-4ad163239aa6609c1d1551917658d3320c417d80.tar.gz
src-4ad163239aa6609c1d1551917658d3320c417d80.zip
Notes
Diffstat (limited to 'contrib/dtc')
-rw-r--r--contrib/dtc/dtc-lexer.l2
-rw-r--r--contrib/dtc/dtc-parser.y3
2 files changed, 4 insertions, 1 deletions
diff --git a/contrib/dtc/dtc-lexer.l b/contrib/dtc/dtc-lexer.l
index d142de59f93c..96c2fcef1aa3 100644
--- a/contrib/dtc/dtc-lexer.l
+++ b/contrib/dtc/dtc-lexer.l
@@ -38,6 +38,8 @@ LINECOMMENT "//".*\n
#include "srcpos.h"
#include "dtc-parser.tab.h"
+YYLTYPE yylloc;
+
#define YY_USER_ACTION \
{ \
yylloc.file = srcpos_file; \
diff --git a/contrib/dtc/dtc-parser.y b/contrib/dtc/dtc-parser.y
index 31c14d7c91c3..4411aed4af73 100644
--- a/contrib/dtc/dtc-parser.y
+++ b/contrib/dtc/dtc-parser.y
@@ -18,7 +18,6 @@
* USA
*/
-%locations
%{
#include <stdio.h>
@@ -26,6 +25,8 @@
#include "dtc.h"
#include "srcpos.h"
+YYLTYPE yylloc;
+
extern int yylex(void);
extern void yyerror(char const *s);