make, swift3: fix parsing empty literal sequences.
[jackhill/mal.git] / basic / cbmbasic_console.patch
CommitLineData
01903266
JM
1diff --git a/runtime.c b/runtime.c
2index 3066580..c635bd4 100644
3--- a/runtime.c
4+++ b/runtime.c
5@@ -535,7 +535,8 @@ printf("CHROUT: %d @ %x,%x,%x,%x\n", A, a, b, c, d);
6 left_cursor();\r
7 break;\r
8 case '"':\r
9- kernal_quote = 1;\r
10+ // jdm: this doesn't match C64 behavior\r
11+ //kernal_quote = 1;\r
12 // fallthrough\r
13 default:\r
14 putchar(A);\r
15@@ -838,8 +839,10 @@ GETIN() {
16 /*Notice that EOF is also turned off in non-canonical mode*/\r
17 A = getchar();\r
18 if (A == 255) { A = 4; } // map actual EOF to 4\r
19+\r
20+ // jdm: this doesn't match C64 behavior\r
21 /* Simulate echo */\r
22- if (A != 0 && A != 4) { putchar(A); }\r
23+ //if (A != 0 && A != 4) { putchar(A); }\r
24 \r
25 /*restore the old settings*/\r
26 tcsetattr( STDIN_FILENO, TCSANOW, &oldt);\r