commit 77bdf8dce1514fb0bb812428784f41fa02628511
parent 7c50a30f3752d051e7745525d25740e88d115366
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Wed, 6 May 2026 10:22:27 +0200
cc2: Remove some of the escape sequences
Some sequences are valid C sequences, but they don't make sense
when we generate the asm code, like for example the \? or others
are not needed (and not accepted by assemblers) like for example
\' in a string.
Diffstat:
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git a/src/cmd/scc-cc/cc2/code.c b/src/cmd/scc-cc/cc2/code.c
@@ -82,9 +82,6 @@ pprint(char *s)
case '\t':
t = "\\t";
goto print_str;
- case '\a':
- t = "\\a";
- goto print_str;
case '\f':
t = "\\f";
goto print_str;
@@ -94,12 +91,6 @@ pprint(char *s)
case '"':
t = "\\\"";
goto print_str;
- case '\'':
- t = "\\'";
- goto print_str;
- case '\?':
- t = "\\\?";
- goto print_str;
case '\\':
putchar('\\');
default: