From: Ian Jackson <ian.jackson@eu.citrix.com>
To: xen-devel@lists.xensource.com
Cc: Ed Swierk <eswierk@skyportsystems.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
osstest-admin@xenproject.org, Jan Beulich <JBeulich@suse.com>
Subject: [PATCH 4.4 2/2] libxl: Fix building libxlu_cfg_y.y with bison 3.0
Date: Mon, 4 Jan 2016 14:50:24 +0000 [thread overview]
Message-ID: <1451919024-7904-2-git-send-email-ian.jackson@eu.citrix.com> (raw)
In-Reply-To: <1451919024-7904-1-git-send-email-ian.jackson@eu.citrix.com>
From: Ed Swierk <eswierk@skyportsystems.com>
- 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.
This is expected to sometimes (depending on timestamps and whether the
bison input files are edited) break building on systems with ancient
versions of bison. Bison 2.4.1 is known to work and was released in
December 2008.
Also, consquentially, regenerate bison output files with bison
1:2.5.dfsg-2.1 from Debian wheezy.
Signed-off-by: Ed Swierk <eswierk@skyportsystems.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Tested-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit 7ba4cdfadd4f3c45d65ffe50e621759f458fedc0)
[ I have checked that rebuilding the bison and flex input produces no
further changes. -iwj ]
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
tools/libxl/libxlu_cfg_y.c | 4 ++--
tools/libxl/libxlu_cfg_y.y | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/tools/libxl/libxlu_cfg_y.c b/tools/libxl/libxlu_cfg_y.c
index 4437e05..07b5a1d 100644
--- a/tools/libxl/libxlu_cfg_y.c
+++ b/tools/libxl/libxlu_cfg_y.c
@@ -76,7 +76,7 @@
/* Line 268 of yacc.c */
#line 19 "libxlu_cfg_y.y"
-#define YYLEX_PARAM ctx->scanner
+#define ctx_scanner ctx->scanner
#include "libxlu_cfg_i.h"
#include "libxlu_cfg_l.h"
@@ -656,7 +656,7 @@ while (YYID (0))
#ifdef YYLEX_PARAM
# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM)
#else
-# define YYLEX yylex (&yylval, &yylloc, scanner)
+# define YYLEX yylex (&yylval, &yylloc, ctx_scanner)
#endif
/* Enable debugging if requested. */
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 <string> IDENT STRING NUMBER NEWLINE
%type <string> atom
--
1.7.10.4
next prev parent reply other threads:[~2016-01-04 14:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-21 17:01 [xen-4.4-testing test] 66718: regressions - FAIL osstest service owner
2015-12-21 17:16 ` Jan Beulich
2016-01-04 10:08 ` Ian Campbell
2016-01-04 14:50 ` [PATCH 4.4 1/2] libxl: Rerun bison and flex Ian Jackson
2016-01-04 14:50 ` Ian Jackson [this message]
2016-01-06 9:10 ` [PATCH 4.4 2/2] libxl: Fix building libxlu_cfg_y.y with bison 3.0 Jan Beulich
2016-01-06 10:30 ` Ian Campbell
2016-01-06 10:40 ` Jan Beulich
2016-01-04 15:00 ` [PATCH 4.4 1/2] libxl: Rerun bison and flex Ian Campbell
2016-01-12 15:44 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1451919024-7904-2-git-send-email-ian.jackson@eu.citrix.com \
--to=ian.jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=eswierk@skyportsystems.com \
--cc=osstest-admin@xenproject.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).