ref: cf871907e412224c33be01bdaaf207bf2479ec26
parent: 727425772ef17fe710453ab97f659b82b8a6b585
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Jun 28 18:53:57 EDT 2020
cpp: Improve switch in outcpp()
--- a/src/cmd/cc/cc1/cpp.c
+++ b/src/cmd/cc/cc1/cpp.c
@@ -818,9 +818,7 @@
goto print_str;
case '\a':
t = "\\a";
- print_str:
- fputs(t, stdout);
- break;
+ goto print_str;
case '\\':
putchar('\\');
default:
@@ -829,6 +827,9 @@
else
putchar(c);
break;
+ print_str:
+ fputs(t, stdout);
+ break;
}
}
putchar(' ');
@@ -835,4 +836,3 @@
}
putchar('\n');
}
-