diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-04-18 11:02:49 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-04-18 11:02:49 -0700 |
commit | bd58d18a2308ae5b53a6f5df1e67203739396d8f (patch) | |
tree | 3c3dbb040071cd35adb2a2f7f7f795600feb46c6 /html/088file.mu.html | |
parent | d6ae00788a2910e16313e8d83906dd4a52cabd43 (diff) | |
download | mu-bd58d18a2308ae5b53a6f5df1e67203739396d8f.tar.gz |
3829
Diffstat (limited to 'html/088file.mu.html')
-rw-r--r-- | html/088file.mu.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html/088file.mu.html b/html/088file.mu.html index 388b57a5..794e9592 100644 --- a/html/088file.mu.html +++ b/html/088file.mu.html @@ -101,14 +101,14 @@ if ('onhashchange' in window) { <span id="L40" class="LineNr"> 40 </span> <span class="Constant">load-ingredients</span> <span id="L41" class="LineNr"> 41 </span> source:&:source:char, error?:bool <span class="Special"><-</span> <a href='088file.mu.html#L21'>start-reading</a> <a href='088file.mu.html#L11'>resources</a>, filename <span id="L42" class="LineNr"> 42 </span> <span class="muControl">return-if</span> error?, <span class="Constant">0/contents</span> -<span id="L43" class="LineNr"> 43 </span> buf:&:<a href='061text.mu.html#L127'>buffer</a> <span class="Special"><-</span> <a href='061text.mu.html#L132'>new-buffer</a> <span class="Constant">30/capacity</span> +<span id="L43" class="LineNr"> 43 </span> buf:&:buffer:char <span class="Special"><-</span> <a href='061text.mu.html#L131'>new-buffer</a> <span class="Constant">30/capacity</span> <span id="L44" class="LineNr"> 44 </span> <span class="Delimiter">{</span> <span id="L45" class="LineNr"> 45 </span> <span class="Conceal">¦</span> c:char, done?:bool, source <span class="Special"><-</span> read source <span id="L46" class="LineNr"> 46 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> done? <span id="L47" class="LineNr"> 47 </span> <span class="Conceal">¦</span> buf <span class="Special"><-</span> append buf, c <span id="L48" class="LineNr"> 48 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span id="L49" class="LineNr"> 49 </span> <span class="Delimiter">}</span> -<span id="L50" class="LineNr"> 50 </span> contents <span class="Special"><-</span> <a href='061text.mu.html#L329'>buffer-to-array</a> buf +<span id="L50" class="LineNr"> 50 </span> contents <span class="Special"><-</span> <a href='061text.mu.html#L328'>buffer-to-array</a> buf <span id="L51" class="LineNr"> 51 </span>] <span id="L52" class="LineNr"> 52 </span> <span id="L53" class="LineNr"> 53 </span><span class="muRecipe">def</span> <a href='088file.mu.html#L53'>start-reading-from-fake-resource</a> <a href='088file.mu.html#L11'>resources</a>:&:<a href='088file.mu.html#L11'>resources</a>, <a href='088file.mu.html#L16'>resource</a>:text<span class="muRecipe"> -> </span>contents:&:source:char, error?:bool [ @@ -226,14 +226,14 @@ if ('onhashchange' in window) { <span id="L165" class="LineNr">165 </span> lock:location <span class="Special"><-</span> get-location *resources, <span class="Constant">lock:offset</span> <span id="L166" class="LineNr">166 </span> wait-for-reset-then-set lock <span id="L167" class="LineNr">167 </span> <span class="Comment"># compute new file contents</span> -<span id="L168" class="LineNr">168 </span> buf:&:<a href='061text.mu.html#L127'>buffer</a> <span class="Special"><-</span> <a href='061text.mu.html#L132'>new-buffer</a><span class="Constant"> 30</span> +<span id="L168" class="LineNr">168 </span> buf:&:buffer:char <span class="Special"><-</span> <a href='061text.mu.html#L131'>new-buffer</a><span class="Constant"> 30</span> <span id="L169" class="LineNr">169 </span> <span class="Delimiter">{</span> <span id="L170" class="LineNr">170 </span> <span class="Conceal">¦</span> c:char, done?:bool, source <span class="Special"><-</span> read source <span id="L171" class="LineNr">171 </span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> done? <span id="L172" class="LineNr">172 </span> <span class="Conceal">¦</span> buf <span class="Special"><-</span> append buf, c <span id="L173" class="LineNr">173 </span> <span class="Conceal">¦</span> <span class="muControl">loop</span> <span id="L174" class="LineNr">174 </span> <span class="Delimiter">}</span> -<span id="L175" class="LineNr">175 </span> contents:text <span class="Special"><-</span> <a href='061text.mu.html#L329'>buffer-to-array</a> buf +<span id="L175" class="LineNr">175 </span> contents:text <span class="Special"><-</span> <a href='061text.mu.html#L328'>buffer-to-array</a> buf <span id="L176" class="LineNr">176 </span> new-resource:<a href='088file.mu.html#L16'>resource</a> <span class="Special"><-</span> merge filename, contents <span id="L177" class="LineNr">177 </span> <span class="Comment"># write to resources</span> <span id="L178" class="LineNr">178 </span> curr-filename:text <span class="Special"><-</span> copy<span class="Constant"> 0</span> |