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); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"