bison-patches
[Top][All Lists]
Advanced

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

[PATCH 3/6] lalr1.cc: reduce "scope"


From: Akim Demaille
Subject: [PATCH 3/6] lalr1.cc: reduce "scope"
Date: Fri, 9 Aug 2019 06:46:59 -0500

From: Adrian Vogelsgesang <address@hidden>

* data/skeletons/lalr1.cc (yy_lr_goto_state_): Make it static.
---
 data/skeletons/lalr1.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data/skeletons/lalr1.cc b/data/skeletons/lalr1.cc
index f76e3340..ddee9569 100644
--- a/data/skeletons/lalr1.cc
+++ b/data/skeletons/lalr1.cc
@@ -234,7 +234,7 @@ m4_define([b4_shared_declarations],
     /// Compute post-reduction state.
     /// \param yystate   the current state
     /// \param yysym     the nonterminal to push on the stack
-    state_type yy_lr_goto_state_ (state_type yystate, int yysym);
+    static state_type yy_lr_goto_state_ (state_type yystate, int yysym);
 
     /// Whether the given \c yypact_ value indicates a defaulted state.
     /// \param yyvalue   the value to check
-- 
2.22.0




reply via email to

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