aboutsummaryrefslogtreecommitdiffhomepage
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/io.c b/io.c
index 48325d4..9156d27 100644
--- a/io.c
+++ b/io.c
@@ -550,6 +550,11 @@ vbfmt(struct wbuf *out, const char *fmt, va_list ap)
}
if (!ccopt.nocolor) n += bputc(buf, 'm');
break;
+ case 'M': /* cc mode */
+ iowrite(buf, &"C89\0C99\0C11\0C23"[ccopt.cstd*4], 3);
+ n += 3;
+ n += bwriteS(buf, " mode");
+ break;
default:
if (umod || lmod) {
--fmt;