mes: resurrect running MesCC: handle \t in strings.
* src/reader.c (read-string): Handle \t. Fixex M1 output.
This commit is contained in:
parent
6a4f601424
commit
18b57b68aa
|
@ -285,6 +285,7 @@ read_string ()
|
||||||
if (c == '\\' && peekchar () == '\\') p = append_char (p, getchar ());
|
if (c == '\\' && peekchar () == '\\') p = append_char (p, getchar ());
|
||||||
else if (c == '\\' && peekchar () == '"') p = append_char (p, getchar ());
|
else if (c == '\\' && peekchar () == '"') p = append_char (p, getchar ());
|
||||||
else if (c == '\\' && peekchar () == 'n') {getchar (); p = append_char (p, '\n');}
|
else if (c == '\\' && peekchar () == 'n') {getchar (); p = append_char (p, '\n');}
|
||||||
|
else if (c == '\\' && peekchar () == 't') {getchar (); p = append_char (p, '\t');}
|
||||||
#if !__MESC__
|
#if !__MESC__
|
||||||
else if (c == EOF) assert (!"EOF in string");
|
else if (c == EOF) assert (!"EOF in string");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue