mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
Make parser::yytranslate static.
Small speedup (1%) on the list grammar. And makes yytranslate_ available in non member functions. * data/lalr1.cc (yytranslate_): Does not need to be a instance function.
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2008-11-10 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
Make parser::yytranslate static.
|
||||
Small speedup (1%) on the list grammar. And makes yytranslate_ available
|
||||
in non member functions.
|
||||
|
||||
* data/lalr1.cc (yytranslate_): Does not need to be a instance
|
||||
function.
|
||||
|
||||
2008-11-10 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
Avoid trailing spaces.
|
||||
|
||||
@@ -497,7 +497,7 @@ m4_ifdef([b4_stype],
|
||||
#endif
|
||||
|
||||
/// Convert a scanner token number \a t to a symbol number.
|
||||
token_number_type yytranslate_ (int t);
|
||||
static inline token_number_type yytranslate_ (int t);
|
||||
|
||||
/// A complete symbol, with its type.
|
||||
template <typename Exact>
|
||||
|
||||
Reference in New Issue
Block a user