Alexandre Julliard : widl: Use %define parse.error verbose instead of %error-verbose.

Ken Thomases ken at codeweavers.com
Wed Apr 24 12:56:33 CDT 2019


This breaks with the version of bison that comes with Xcode:

$ bison --version
bison (GNU Bison) 2.3
[…]
$ bison -p parser_ -o parser.tab.c -d ../../../tools/widl/parser.y
../../../tools/widl/parser.y:321.9-19: syntax error, unexpected identifier, expecting string

Installing a newer version of Bison (e.g. via MacPorts) does work around it.  Maybe there should be a configure check?

-Ken

> On Apr 23, 2019, at 5:39 PM, Alexandre Julliard <julliard at winehq.org> wrote:
> 
> Module: wine
> Branch: master
> Commit: 5ea4d5971bff3430c29f1da31166b0a2565347ab
> URL:    https://source.winehq.org/git/wine.git/?a=commit;h=5ea4d5971bff3430c29f1da31166b0a2565347ab
> 
> Author: Alexandre Julliard <julliard at winehq.org>
> Date:   Tue Apr 23 11:47:22 2019 +0200
> 
> widl: Use %define parse.error verbose instead of %error-verbose.
> 
> The latter is deprecated and causes warnings.
> 
> Signed-off-by: Alexandre Julliard <julliard at winehq.org>
> 
> ---
> 
> tools/widl/parser.y | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/widl/parser.y b/tools/widl/parser.y
> index 5156dce..dd676e9 100644
> --- a/tools/widl/parser.y
> +++ b/tools/widl/parser.y
> @@ -318,7 +318,7 @@ static typelib_t *current_typelib;
> %right '!' '~' CAST PPTR POS NEG ADDRESSOF tSIZEOF
> %left '.' MEMBERPTR '[' ']'
> 
> -%error-verbose
> +%define parse.error verbose
> 
> %%
> 
> 
> 
> 




More information about the wine-devel mailing list