aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/cgen.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-31 11:23:14 +0200
committerlemon <lsof@mailbox.org>2022-08-31 11:23:14 +0200
commitaf617f24c5f2f2cab357ace9d822c6948c7e487f (patch)
tree196657ff59552219e7928b7bba300ee2c540b354 /bootstrap/cgen.c
parentf1d4407044b5cd5eaabf0a53d1d7cb5d8b270ea6 (diff)
get close to self hosting (ack works)
Diffstat (limited to 'bootstrap/cgen.c')
-rw-r--r--bootstrap/cgen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c
index 7db84ea..ee88280 100644
--- a/bootstrap/cgen.c
+++ b/bootstrap/cgen.c
@@ -54,6 +54,8 @@ pristring(const char *s, u64 n) {
pri("\\\"");
else if (s[i] == '\\')
pri("\\\\");
+ else if (s[i] == '?')
+ pri("\\?");
else if (isprint(s[i]))
pri("%c", s[i]);
else