All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxl: Fix building libxlu_cfg_y.y with bison 3.0
@ 2014-11-30  5:23 Ed Swierk
  2014-12-01  9:42 ` Ian Campbell
  0 siblings, 1 reply; 14+ messages in thread
From: Ed Swierk @ 2014-11-30  5:23 UTC (permalink / raw)
  To: xen-devel; +Cc: eswierk

- 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 <eswierk@skyportsystems.com>
---
 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 <string>                IDENT STRING NUMBER NEWLINE
 %type <string>            atom
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-01-06 15:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-30  5:23 [PATCH] libxl: Fix building libxlu_cfg_y.y with bison 3.0 Ed Swierk
2014-12-01  9:42 ` Ian Campbell
2014-12-01 12:19   ` Wei Liu
2014-12-02 13:47     ` Ian Campbell
2014-12-02 14:00       ` Andrew Cooper
2014-12-02 17:49         ` Ed Swierk
2014-12-03  9:53           ` Ian Campbell
2014-12-03 10:01             ` Olaf Hering
2014-12-09 15:25             ` Ian Jackson
2014-12-10 16:41               ` Konrad Rzeszutek Wilk
2014-12-10 16:44                 ` Ian Campbell
2014-12-10 17:02                   ` Konrad Rzeszutek Wilk
2015-01-06 15:28                     ` Ian Jackson
2014-12-02 18:32       ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.