Module: wine Branch: master Commit: 78c5e3ab0321a9a8a24e2bc35518419f97cd8d2e URL: https://gitlab.winehq.org/wine/wine/-/commit/78c5e3ab0321a9a8a24e2bc35518419...
Author: Rémi Bernon rbernon@codeweavers.com Date: Sat Mar 25 13:31:57 2023 +0100
widl: Define PARSER_LTYPE instead of api.location.type.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54729
---
tools/widl/parser.y | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y index e3476f6ded8..5567d94559e 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -106,6 +106,13 @@ static typelib_t *current_typelib;
%}
+%code requires +{ + +#define PARSER_LTYPE struct location + +} + %code provides {
@@ -119,7 +126,6 @@ void pop_import( PARSER_LTYPE *yylloc );
}
-%define api.location.type {struct location} %define api.prefix {parser_} %define api.pure full %define parse.error verbose