diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-01-27 00:39:46 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-01-27 00:39:46 -0800 |
commit | 2104d1a75b76dbffc0b15a96c98d94e7a16594e8 (patch) | |
tree | 2a839b86e76431a9bbe4bf155f7411171a26d7f8 /html/071read-line.subx.html | |
parent | 71eb22a5bf94f5fa0a3c95212450e3c6a1a6a990 (diff) | |
download | mu-2104d1a75b76dbffc0b15a96c98d94e7a16594e8.tar.gz |
5925
Diffstat (limited to 'html/071read-line.subx.html')
-rw-r--r-- | html/071read-line.subx.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/071read-line.subx.html b/html/071read-line.subx.html index 3d4d8ffb..8f26841f 100644 --- a/html/071read-line.subx.html +++ b/html/071read-line.subx.html @@ -66,7 +66,7 @@ if ('onhashchange' in window) { <span id="L6" class="LineNr"> 6 </span><span class="subxComment"># read bytes from 'f' until (and including) a newline and store them into 's'</span> <span id="L7" class="LineNr"> 7 </span><span class="subxComment"># 's' fails to grow if and only if no data found</span> <span id="L8" class="LineNr"> 8 </span><span class="subxComment"># just abort if 's' is too small</span> -<span id="L9" class="LineNr"> 9 </span><span class="subxFunction">read-line-buffered</span>: <span class="subxComment"># f : (addr buffered-file), s : (addr stream byte)</span> +<span id="L9" class="LineNr"> 9 </span><span class="subxFunction">read-line-buffered</span>: <span class="subxComment"># f: (addr buffered-file), s: (addr stream byte)</span> <span id="L10" class="LineNr"> 10 </span> <span class="subxComment"># pseudocode:</span> <span id="L11" class="LineNr"> 11 </span> <span class="subxComment"># while true</span> <span id="L12" class="LineNr"> 12 </span> <span class="subxComment"># if (s->write >= s->length) abort</span> @@ -276,7 +276,7 @@ if ('onhashchange' in window) { <span id="L216" class="LineNr">216 </span><span class="subxComment"># read bytes from 'f' until (and including) a newline and store them into 's'</span> <span id="L217" class="LineNr">217 </span><span class="subxComment"># 's' fails to grow if and only if no data found</span> <span id="L218" class="LineNr">218 </span><span class="subxComment"># just abort if 's' is too small</span> -<span id="L219" class="LineNr">219 </span><span class="subxFunction">read-line</span>: <span class="subxComment"># f : (addr stream byte), s : (addr stream byte)</span> +<span id="L219" class="LineNr">219 </span><span class="subxFunction">read-line</span>: <span class="subxComment"># f: (addr stream byte), s: (addr stream byte)</span> <span id="L220" class="LineNr">220 </span> <span class="subxComment"># pseudocode:</span> <span id="L221" class="LineNr">221 </span> <span class="subxComment"># while true</span> <span id="L222" class="LineNr">222 </span> <span class="subxComment"># if (s->write >= s->length) abort</span> |