From 33a03247c00d9a5dc659f4be9065d649d839e629 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 4 Nov 2008 10:03:34 +0000 Subject: [PATCH] modifier to print preprocessing token [r23424] --- diagnostic.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/diagnostic.c b/diagnostic.c index 585d61b..eacf085 100644 --- a/diagnostic.c +++ b/diagnostic.c @@ -127,6 +127,12 @@ static void diagnosticvf(const char *const fmt, va_list ap) break; } + case 't': { + const token_t *const token = va_arg(ap, const token_t*); + print_pp_token(stderr, token); + break; + } + case 'K': { const token_t* const token = va_arg(ap, const token_t*); print_token(stderr, token); -- 2.20.1