From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH] libxl: Fix building libxlu_cfg_y.y with bison 3.0 Date: Mon, 1 Dec 2014 09:42:13 +0000 Message-ID: <1417426933.23604.77.camel@citrix.com> References: <1417325015-22354-1-git-send-email-eswierk@skyportsystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XvNUq-0006mz-1s for xen-devel@lists.xenproject.org; Mon, 01 Dec 2014 09:42:20 +0000 In-Reply-To: <1417325015-22354-1-git-send-email-eswierk@skyportsystems.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ed Swierk , Ian Jackson Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Sat, 2014-11-29 at 21:23 -0800, Ed Swierk wrote: > - Use %lex-param instead of obsolete YYLEX_PARAM to override lex scanner > parameter > - Change deprecated %name-prefix= to %name-prefix > > Tested against bison 2.4.1 and 3.0.2. > > Signed-off-by: Ed Swierk Copying Ian J who is the bison guy among the toolstack maintainers. > --- > tools/libxl/libxlu_cfg_y.y | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tools/libxl/libxlu_cfg_y.y b/tools/libxl/libxlu_cfg_y.y > index aa9f787..5acd438 100644 > --- a/tools/libxl/libxlu_cfg_y.y > +++ b/tools/libxl/libxlu_cfg_y.y > @@ -17,7 +17,7 @@ > */ > > %{ > -#define YYLEX_PARAM ctx->scanner > +#define ctx_scanner ctx->scanner > #include "libxlu_cfg_i.h" > #include "libxlu_cfg_l.h" > %} > @@ -31,9 +31,9 @@ > %pure-parser > %defines > %error-verbose > -%name-prefix="xlu__cfg_yy" > +%name-prefix "xlu__cfg_yy" > %parse-param { CfgParseContext *ctx } > -%lex-param { void *scanner } > +%lex-param { ctx_scanner } > > %token IDENT STRING NUMBER NEWLINE > %type atom