Module: wine Branch: master Commit: 07243c4e128207a23a4cbf6d7804cbc05114c5d7 URL: https://gitlab.winehq.org/wine/wine/-/commit/07243c4e128207a23a4cbf6d7804cbc...
Author: Elizabeth Figura zfigura@codeweavers.com Date: Mon Mar 25 13:56:33 2024 -0500
widl: Assign to the right location variable.
yyloc is an internal variable; we want to assign to yylloc here.
This fixes error reporting.
Fixes: 3b12583db0cf68b356f20d7bbd091651af246eff
---
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 9b6a4c36732..e5e28fd7b24 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -515,7 +515,7 @@ cppquote: tCPPQUOTE '(' aSTRING ')' { $$ = $3; }
import_start: tIMPORT aSTRING ';' { $$ = $2; push_import( $2, &yylloc ); } ; -import: import_start imp_statements aEOF { yyloc = pop_import(); } +import: import_start imp_statements aEOF { yylloc = pop_import(); } ;
importlib: tIMPORTLIB '(' aSTRING ')'