mes: resurrect running MesCC: handle \t in strings.

* src/reader.c (read-string): Handle \t.  Fixex M1 output.
This commit is contained in:
Jan Nieuwenhuizen 2017-12-09 19:33:10 +01:00
parent 6a4f601424
commit 18b57b68aa
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ read_string ()
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 () == 't') {getchar (); p = append_char (p, '\t');}
#if !__MESC__
else if (c == EOF) assert (!"EOF in string");
#endif