bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] yacc.c: style changes


From: Akim Demaille
Subject: [PATCH 1/3] yacc.c: style changes
Date: Fri, 31 Aug 2012 17:54:02 +0200

* data/yacc.c: (yytoken): Define with initial value.
---
 data/yacc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/data/yacc.c b/data/yacc.c
index 0175688..2c57f01 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -1513,7 +1513,7 @@ b4_c_function_def([[yyparse]], [[int]], b4_parse_param)[
   int yyn;
   int yyresult;
   /* Lookahead token as an internal (translated) token number.  */
-  int yytoken;
+  int yytoken = 0;
   /* The variables used to return semantic value and location from the
      action routines.  */
   YYSTYPE yyval;]b4_locations_if([[
@@ -1538,7 +1538,6 @@ b4_c_function_def([[yyparse]], [[int]], b4_parse_param)[
       goto yyread_pushed_token;
     }]])[
 
-  yytoken = 0;
   yyss = yyssa;
   yyvs = yyvsa;]b4_locations_if([[
   yyls = yylsa;]])[
-- 
1.7.11.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]