Let dtc build with FreeBSD yacc/lex.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Rafal Jaworowski
2010-02-28 22:06:07 +00:00
parent 21fdc27a05
commit 4ad163239a
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -38,6 +38,8 @@ LINECOMMENT "//".*\n
#include "srcpos.h"
#include "dtc-parser.tab.h"
YYLTYPE yylloc;
#define YY_USER_ACTION \
{ \
yylloc.file = srcpos_file; \
+2 -1
View File
@@ -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);