diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-11-18 12:50:01 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-11-18 12:50:01 -0800 |
commit | 6488bfcf851023e1b8e84be6ebbb793f895f3d0f (patch) | |
tree | 6e279f6850a7f9c0ccf77c1d6549892c8d5fffb9 /apps/dquotes.subx | |
parent | 442fdabe305fa35bf1649a072b9a7b3b87cd50e9 (diff) | |
download | mu-6488bfcf851023e1b8e84be6ebbb793f895f3d0f.tar.gz |
5753
Binaries are now identical again. There's a little hack here that we should clean up at some point. But it requires more thought. Ordering compiler phases is hard. So far we're only at the start of the slippery slope into that abyss.
Diffstat (limited to 'apps/dquotes.subx')
-rw-r--r-- | apps/dquotes.subx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/dquotes.subx b/apps/dquotes.subx index 7e6318cb..8220f582 100644 --- a/apps/dquotes.subx +++ b/apps/dquotes.subx @@ -86,7 +86,16 @@ subx-dquotes: # in : (address buffered-file), out : (address buffered-file) # pseudocode: # var line : (stream byte 512) # var new-data-segment : (handle stream byte) = new-stream(Heap, Segment-size, 1) + # # write(new-data-segment, "== data\n") + # # TODO: When it was originally written dquotes ran before assort, so + # # it assumes lots of segment headers, and emits a new segment of its + # # own. We've since had to reorder the phases (see the explanation + # # for a.assort2 in ntranslate). We could clean up a.assort2 if we + # # conditionally emit the previous line. But this would require + # # teaching dquotes to parse segment headers, so maybe that's not + # # best.. + # # while true # clear-stream(line) # read-line-buffered(in, line) |