diff options
Diffstat (limited to 'html/061text.mu.html')
-rw-r--r-- | html/061text.mu.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/html/061text.mu.html b/html/061text.mu.html index 589ca78e..268d4275 100644 --- a/html/061text.mu.html +++ b/html/061text.mu.html @@ -156,6 +156,11 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Constant">load-ingredients</span> result<span class="Special"> <- </span>new <span class="Constant">buffer:type</span> *result<span class="Special"> <- </span>put *result, <span class="Constant">length:offset</span>, <span class="Constant">0</span> + <span class="Delimiter">{</span> + <span class="muControl">break-if</span> capacity + <span class="Comment"># capacity not provided</span> + capacity<span class="Special"> <- </span>copy <span class="Constant">10</span> + <span class="Delimiter">}</span> data:address:array:character<span class="Special"> <- </span>new <span class="Constant">character:type</span>, capacity *result<span class="Special"> <- </span>put *result, <span class="Constant">data:offset</span>, data <span class="muControl">return</span> result @@ -276,6 +281,15 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color ] ] +<span class="muScenario">scenario</span> buffer-append-to-empty [ + run [ + <span class="Constant">local-scope</span> + x:address:buffer<span class="Special"> <- </span>new-buffer + c:character<span class="Special"> <- </span>copy <span class="Constant">97/a</span> + x<span class="Special"> <- </span>append x, c + ] +] + <span class="muScenario">scenario</span> buffer-append-handles-backspace [ run [ <span class="Constant">local-scope</span> |