bison-patches
[Top][All Lists]
Advanced

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

[maint] yacc.c: restore ansi-c compatibility


From: Akim Demaille
Subject: [maint] yacc.c: restore ansi-c compatibility
Date: Sat, 9 May 2020 17:05:57 +0200

commit 2da399d15f8cc08ffaf196735802fa381a43566d
Author: Akim Demaille <address@hidden>
Date:   Sat May 9 17:02:32 2020 +0200

    yacc.c: restore ansi-c compatibility
    
    Reported by neok-m4700.
    https://github.com/akimd/bison/issues/37
    
    * data/skeletons/yacc.c: Don't use // comments.

diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index a790f6fa..a9f15c8d 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -1979,7 +1979,7 @@ yyerrorlab:
 yyerrlab1:
   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
 
-  // Pop stack until we find a state that shifts the error token.
+  /* Pop stack until we find a state that shifts the error token.  */
   for (;;)
     {
       yyn = yypact[yystate];
diff --git a/src/parse-gram.c b/src/parse-gram.c
index a021e1aa..212e95d5 100644
--- a/src/parse-gram.c
+++ b/src/parse-gram.c
@@ -2705,7 +2705,7 @@ yyerrorlab:
 yyerrlab1:
   yyerrstatus = 3;      /* Each real token shifted decrements this.  */
 
-  // Pop stack until we find a state that shifts the error token.
+  /* Pop stack until we find a state that shifts the error token.  */
   for (;;)
     {
       yyn = yypact[yystate];




reply via email to

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