modifier to print preprocessing token
authorMatthias Braun <matze@braunis.de>
Tue, 4 Nov 2008 10:03:34 +0000 (10:03 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 4 Nov 2008 10:03:34 +0000 (10:03 +0000)
[r23424]

diagnostic.c

index 585d61b..eacf085 100644 (file)
@@ -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);