svn commit: r204489 - head/contrib/dtc
Rafal Jaworowski
raj at FreeBSD.org
Sun Feb 28 22:06:07 UTC 2010
Author: raj
Date: Sun Feb 28 22:06:07 2010
New Revision: 204489
URL: http://svn.freebsd.org/changeset/base/204489
Log:
Let dtc build with FreeBSD yacc/lex.
Sponsored by: The FreeBSD Foundation
Modified:
head/contrib/dtc/dtc-lexer.l
head/contrib/dtc/dtc-parser.y
Modified: head/contrib/dtc/dtc-lexer.l
==============================================================================
--- head/contrib/dtc/dtc-lexer.l Sun Feb 28 21:57:35 2010 (r204488)
+++ head/contrib/dtc/dtc-lexer.l Sun Feb 28 22:06:07 2010 (r204489)
@@ -38,6 +38,8 @@ LINECOMMENT "//".*\n
#include "srcpos.h"
#include "dtc-parser.tab.h"
+YYLTYPE yylloc;
+
#define YY_USER_ACTION \
{ \
yylloc.file = srcpos_file; \
Modified: head/contrib/dtc/dtc-parser.y
==============================================================================
--- head/contrib/dtc/dtc-parser.y Sun Feb 28 21:57:35 2010 (r204488)
+++ head/contrib/dtc/dtc-parser.y Sun Feb 28 22:06:07 2010 (r204489)
@@ -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);
More information about the svn-src-head
mailing list