style: use %code for local function declarations in our parser
authorAkim Demaille <akim@lrde.epita.fr>
Thu, 18 Apr 2013 12:46:06 +0000 (14:46 +0200)
committerAkim Demaille <akim@lrde.epita.fr>
Thu, 18 Apr 2013 13:10:35 +0000 (15:10 +0200)
commit827aca04ebd852b63087d80d8e420bb325bb9bd5
tree77734d6a5cdf1c74672718973932acb8bafd4610
parentff2e3d397a415636bd87a29193aec995f586f433
style: use %code for local function declarations in our parser

* src/parse-gram.y (version_check, gram_error, char_name, lloc_default):
Move their prototypes from %{...%} to %code.
(YYLLOC_DEFAULT, YY_LOCATION_PRINT): Move from %{...%} to %code.
(current_lhs): Move its implementation to the epilogue.
src/parse-gram.y