settings: Replace deprecated YYLEX_PARAM with %lex-param
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 May 2014 08:50:36 +0000 (10:50 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 15 May 2014 09:28:09 +0000 (11:28 +0200)
commitda45f9e994f61324a058def37fbafd5cce75b5f3
tree49e9c2e0db9d6291373de3b301cb98589cb10456
parent813e510d69b27ab25cfab01cc89dd34ad3927e73
settings: Replace deprecated YYLEX_PARAM with %lex-param

With Bison 3.x support for YYLEX_PARAM has been removed and %lex-param
should be used.  Unfortunately, that option does not take expressions.
Instead we use a wrapper function that calls the lexer with the proper
scanner object, which should also be backward compatible to older Bison
versions.
src/libstrongswan/settings/settings_parser.y