scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 94f3f1872a95d6fdd8f6aff8bfec86bbbf46041f
parent 73ca709dea852be1382f797f747c0ecb7ffcc460
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 28 Jun 2020 22:53:57 +0200

cpp: Improve switch in outcpp()

Diffstat:
Msrc/cmd/cc/cc1/cpp.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/cmd/cc/cc1/cpp.c b/src/cmd/cc/cc1/cpp.c @@ -818,9 +818,7 @@ outcpp(void) goto print_str; case '\a': t = "\\a"; - print_str: - fputs(t, stdout); - break; + goto print_str; case '\\': putchar('\\'); default: @@ -829,10 +827,12 @@ outcpp(void) else putchar(c); break; + print_str: + fputs(t, stdout); + break; } } putchar(' '); } putchar('\n'); } -