opensubscriber
   Find in this group all groups
 
Unknown more information…

b : bison-patches@gnu.org 21 June 2012 • 11:15PM -0400

FYI: skeletons: minor style changes
by Akim Demaille

REPLY TO AUTHOR
 
REPLY TO GROUP




Installed in maint.

From 6e2d7b0974f44053d4425baf5195a84013292262 Mon Sep 17 00:00:00 2001
From: Akim Demaille <akim@lrde...>
Date: Sun, 17 Jun 2012 12:12:52 +0200
Subject: [PATCH] skeletons: minor style changes

* data/glr.c, data/yacc.c: here.
---
data/glr.c  |   22 +++++++++++-----------
data/yacc.c |    4 ++--
2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/data/glr.c b/data/glr.c
index 100a5f2..4d0a1bc 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -187,17 +187,17 @@ b4_copyright([Skeleton implementation for Bison GLR parsers in C],

]b4_identification

-b4_percent_code_get([[top]])[]dnl
-m4_if(b4_prefix, [yy], [],
-[/* Substitute the variable and function names.  */
-#define yyparse b4_prefix[]parse
-#define yylex   b4_prefix[]lex
-#define yyerror b4_prefix[]error
-#define yylval  b4_prefix[]lval
-#define yychar  b4_prefix[]char
-#define yydebug b4_prefix[]debug
-#define yynerrs b4_prefix[]nerrs
-#define yylloc  b4_prefix[]lloc])[
+b4_percent_code_get([[top]])[
+]m4_if(b4_prefix, [yy], [],
+[[/* Substitute the variable and function names.  */
+#define yyparse ]b4_prefix[parse
+#define yylex   ]b4_prefix[lex
+#define yyerror ]b4_prefix[error
+#define yylval  ]b4_prefix[lval
+#define yychar  ]b4_prefix[char
+#define yydebug ]b4_prefix[debug
+#define yynerrs ]b4_prefix[nerrs]b4_locations_if([[
+#define yylloc  ]b4_prefix[lloc]])])[

/* Copy the first part of user declarations.  */
]b4_user_pre_prologue[
diff --git a/data/yacc.c b/data/yacc.c
index bd1a4b7..400c68c 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -316,8 +316,8 @@ m4_if(b4_prefix, [yy], [],
#define yylval          ]b4_prefix[lval
#define yychar          ]b4_prefix[char
#define yydebug         ]b4_prefix[debug
-#define yynerrs         ]b4_prefix[nerrs
-]b4_locations_if([[#define yylloc          ]b4_prefix[lloc]])])[
+#define yynerrs         ]b4_prefix[nerrs]b4_locations_if([[
+#define yylloc          ]b4_prefix[lloc]])])[

/* Copy the first part of user declarations.  */
]b4_user_pre_prologue[
--
1.7.10.4




Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.