projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbfa478
)
modifier to print preprocessing token
author
Matthias Braun
<matze@braunis.de>
Tue, 4 Nov 2008 10:03:34 +0000
(10:03 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 4 Nov 2008 10:03:34 +0000
(10:03 +0000)
[r23424]
diagnostic.c
patch
|
blob
|
history
diff --git
a/diagnostic.c
b/diagnostic.c
index
585d61b
..
eacf085
100644
(file)
--- 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);