From 347a96fec7749e71927f1eb8c0ce76fd7490a7d2 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 21 Apr 2004 10:39:57 -0700 Subject: [PATCH] Oops. Fix the preprocessor handling of "..." arguments. This has been broken since day one, but since most uses were to things that could happily live with just the first argument in the list, we never noticed. --- pre-process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pre-process.c b/pre-process.c index d2dc2a8f..da2ec13a 100644 --- a/pre-process.c +++ b/pre-process.c @@ -635,6 +635,7 @@ static int handle_define(struct stream *stream, struct token *head, struct token warn(expansion->pos, "__VA_ARGS__ can only appear in the expansion of a C99 variadic macro"); if (match_op(next, SPECIAL_ELLIPSIS)) { expansion->next = &variable_argument; + expansion = next; next = next->next; } } -- 2.11.4.GIT