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:
Akim Demaille
2008-08-16 15:47:30 +02:00
parent 30bb2edccf
commit 6ed15cde29
2 changed files with 10 additions and 1 deletions

View File

@@ -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.

View File

@@ -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>