diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-12-15 14:32:47 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-12-15 14:32:47 -0800 |
commit | 67db19a05335c7fbea3ad6737303c8848fd39e74 (patch) | |
tree | 00d9585bf4de231254867d8c7515386934bb3d3f /html/084console.mu.html | |
parent | 62a390ca0a27daa80ce4b6b17934d8d067db8631 (diff) | |
download | mu-67db19a05335c7fbea3ad6737303c8848fd39e74.tar.gz |
2545
update html
Diffstat (limited to 'html/084console.mu.html')
-rw-r--r-- | html/084console.mu.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/html/084console.mu.html b/html/084console.mu.html index b8619762..4065e18b 100644 --- a/html/084console.mu.html +++ b/html/084console.mu.html @@ -54,17 +54,17 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } ] <span class="muData">container</span> console [ - index:number - data:address:array:event + current-event-index:number + events:address:array:event ] <span class="muRecipe">recipe</span> new-fake-console events:address:array:event<span class="muRecipe"> -> </span>result:address:console [ <span class="Constant">local-scope</span> <span class="Constant">load-ingredients</span> result:address:console<span class="Special"> <- </span>new <span class="Constant">console:type</span> - buf:address:address:array:event<span class="Special"> <- </span>get-address *result, <span class="Constant">data:offset</span> + buf:address:address:array:event<span class="Special"> <- </span>get-address *result, <span class="Constant">events:offset</span> *buf<span class="Special"> <- </span>copy events - idx:address:number<span class="Special"> <- </span>get-address *result, <span class="Constant">index:offset</span> + idx:address:number<span class="Special"> <- </span>get-address *result, <span class="Constant">current-event-index:offset</span> *idx<span class="Special"> <- </span>copy <span class="Constant">0</span> ] @@ -73,17 +73,17 @@ body { font-family: monospace; color: #eeeeee; background-color: #080808; } <span class="Constant">load-ingredients</span> <span class="Delimiter">{</span> <span class="muControl">break-unless</span> console - idx:address:number<span class="Special"> <- </span>get-address *console, <span class="Constant">index:offset</span> - buf:address:array:event<span class="Special"> <- </span>get *console, <span class="Constant">data:offset</span> + current-event-index:address:number<span class="Special"> <- </span>get-address *console, <span class="Constant">current-event-index:offset</span> + buf:address:array:event<span class="Special"> <- </span>get *console, <span class="Constant">events:offset</span> <span class="Delimiter">{</span> max:number<span class="Special"> <- </span>length *buf - done?:boolean<span class="Special"> <- </span>greater-or-equal *idx, max + done?:boolean<span class="Special"> <- </span>greater-or-equal *current-event-index, max <span class="muControl">break-unless</span> done? dummy:address:event<span class="Special"> <- </span>new <span class="Constant">event:type</span> <span class="muControl">reply</span> *dummy, console/same-as-ingredient:<span class="Constant">0</span>, <span class="Constant">1/found</span>, <span class="Constant">1/quit</span> <span class="Delimiter">}</span> - result<span class="Special"> <- </span>index *buf, *idx - *idx<span class="Special"> <- </span>add *idx, <span class="Constant">1</span> + result<span class="Special"> <- </span>index *buf, *current-event-index + *current-event-index<span class="Special"> <- </span>add *current-event-index, <span class="Constant">1</span> <span class="muControl">reply</span> result, console/same-as-ingredient:<span class="Constant">0</span>, <span class="Constant">1/found</span>, <span class="Constant">0/quit</span> <span class="Delimiter">}</span> switch <span class="Comment"># real event source is infrequent; avoid polling it too much</span> |