]> git.saurik.com Git - bison.git/commit - data/lalr1.cc
c++: use more explicit types than int
authorAkim Demaille <akim@lrde.epita.fr>
Tue, 29 Jan 2013 07:16:15 +0000 (08:16 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Tue, 29 Jan 2013 08:04:08 +0000 (09:04 +0100)
commit26f95f5f356ca003d125a5c5285a09a0564e3bd9
treefd89edee4378852684134c75c6c982597e921494
parent7fc7df7a38b57f90fc5194aeca77d288edebbe2a
c++: use more explicit types than int

* data/c++.m4 (b4_public_types_declare): Declare token_number_type soon.
Introduce symbol_number_type (wider than token_number_type).
Clarify the requirement that kind_type from by_state and by_type
denote the _input_ type (required by the constructor), not the stored type.
Use symbol_number_type and token_number_type where appropriate, instead
of int.
* data/lalr1.cc: Adjust to these changes.
Propagate "symbol_number_type".
Invoke "type_get ()" instead of read "type" directly.
data/c++.m4
data/lalr1.cc