[PATCH 1/2] wpp: Don't choke on fully variadic macros

Alex Henrie alexhenrie24 at gmail.com
Thu Sep 9 00:29:24 CDT 2021


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 libs/wpp/ppy.y | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libs/wpp/ppy.y b/libs/wpp/ppy.y
index 5b7083b3813..0afc642d3e0 100644
--- a/libs/wpp/ppy.y
+++ b/libs/wpp/ppy.y
@@ -327,6 +327,7 @@ allmargs: /* Empty */		{ $$ = 0; macro_args = NULL; nmacro_args = 0; }
 
 emargs	: margs			{ $$ = $1; }
 	| margs ',' tELLIPSIS	{ nmacro_args *= -1; }
+	| tELLIPSIS	{ macro_args = NULL; nmacro_args = 0; }
 	;
 
 margs	: margs ',' tIDENT	{ $$ = add_new_marg($3); }
-- 
2.33.0




More information about the wine-devel mailing list