From owner-svn-src-all@FreeBSD.ORG Sun Feb 28 22:06:07 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F868106566C; Sun, 28 Feb 2010 22:06:07 +0000 (UTC) (envelope-from raj@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 8EC358FC0C; Sun, 28 Feb 2010 22:06:07 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o1SM67QO006370; Sun, 28 Feb 2010 22:06:07 GMT (envelope-from raj@svn.freebsd.org) Received: (from raj@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1SM67Zm006367; Sun, 28 Feb 2010 22:06:07 GMT (envelope-from raj@svn.freebsd.org) Message-Id: <201002282206.o1SM67Zm006367@svn.freebsd.org> From: Rafal Jaworowski Date: Sun, 28 Feb 2010 22:06:07 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204489 - head/contrib/dtc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2010 22:06:07 -0000 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 @@ -26,6 +25,8 @@ #include "dtc.h" #include "srcpos.h" +YYLTYPE yylloc; + extern int yylex(void); extern void yyerror(char const *s);