about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--chessboard.mu20
-rw-r--r--html/chessboard.mu.html20
2 files changed, 20 insertions, 20 deletions
diff --git a/chessboard.mu b/chessboard.mu
index c147c771..9f73561e 100644
--- a/chessboard.mu
+++ b/chessboard.mu
@@ -245,28 +245,28 @@ def read-move stdin:address:shared:channel, screen:address:shared:screen -> resu
   local-scope
   load-ingredients
   from-file:number, quit?:boolean, error?:boolean <- read-file stdin, screen
-  return-if quit?, 0/dummy, quit?, error?
-  return-if error?, 0/dummy, quit?, error?
+  return-if quit?, 0/dummy
+  return-if error?, 0/dummy
   # construct the move object
   result:address:shared:move <- new move:type
   x:address:number <- get-address *result, from-file:offset
   *x <- copy from-file
   x <- get-address *result, from-rank:offset
   *x, quit?, error? <- read-rank stdin, screen
-  return-if quit?, 0/dummy, quit?, error?
-  return-if error?, 0/dummy, quit?, error?
+  return-if quit?, 0/dummy
+  return-if error?, 0/dummy
   error? <- expect-from-channel stdin, 45/dash, screen
-  return-if error?, 0/dummy, 0/quit, error?
+  return-if error?, 0/dummy, 0/quit
   x <- get-address *result, to-file:offset
   *x, quit?, error? <- read-file stdin, screen
-  return-if quit?:boolean, 0/dummy, quit?:boolean, error?:boolean
-  return-if error?:boolean, 0/dummy, quit?:boolean, error?:boolean
+  return-if quit?:boolean, 0/dummy
+  return-if error?:boolean, 0/dummy
   x:address:number <- get-address *result, to-rank:offset
   *x, quit?, error? <- read-rank stdin, screen
-  return-if quit?, 0/dummy, quit?, error?
-  return-if error?, 0/dummy, quit?, error?
+  return-if quit?, 0/dummy
+  return-if error?, 0/dummy
   error? <- expect-from-channel stdin, 10/newline, screen
-  return-if error?, 0/dummy, 0/quit, error?
+  return-if error?, 0/dummy, 0/quit
   return result, quit?, error?
 ]
 
diff --git a/html/chessboard.mu.html b/html/chessboard.mu.html
index 7edc5632..2f07b96d 100644
--- a/html/chessboard.mu.html
+++ b/html/chessboard.mu.html
@@ -273,28 +273,28 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   <span class="Constant">local-scope</span>
   <span class="Constant">load-ingredients</span>
   from-file:number, quit?:boolean, error?:boolean<span class="Special"> &lt;- </span>read-file stdin, screen
-  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>, quit?, error?
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, quit?, error?
+  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>
   <span class="Comment"># construct the move object</span>
   result:address:shared:move<span class="Special"> &lt;- </span>new <span class="Constant">move:type</span>
   x:address:number<span class="Special"> &lt;- </span>get-address *result, <span class="Constant">from-file:offset</span>
   *x<span class="Special"> &lt;- </span>copy from-file
   x<span class="Special"> &lt;- </span>get-address *result, <span class="Constant">from-rank:offset</span>
   *x, quit?, error?<span class="Special"> &lt;- </span>read-rank stdin, screen
-  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>, quit?, error?
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, quit?, error?
+  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>
   error?<span class="Special"> &lt;- </span>expect-from-channel stdin, <span class="Constant">45/dash</span>, screen
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, <span class="Constant">0/quit</span>, error?
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, <span class="Constant">0/quit</span>
   x<span class="Special"> &lt;- </span>get-address *result, <span class="Constant">to-file:offset</span>
   *x, quit?, error?<span class="Special"> &lt;- </span>read-file stdin, screen
-  <span class="muControl">return-if</span> quit?:boolean, <span class="Constant">0/dummy</span>, quit?:boolean, error?:boolean
-  <span class="muControl">return-if</span> error?:boolean, <span class="Constant">0/dummy</span>, quit?:boolean, error?:boolean
+  <span class="muControl">return-if</span> quit?:boolean, <span class="Constant">0/dummy</span>
+  <span class="muControl">return-if</span> error?:boolean, <span class="Constant">0/dummy</span>
   x:address:number<span class="Special"> &lt;- </span>get-address *result, <span class="Constant">to-rank:offset</span>
   *x, quit?, error?<span class="Special"> &lt;- </span>read-rank stdin, screen
-  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>, quit?, error?
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, quit?, error?
+  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>
   error?<span class="Special"> &lt;- </span>expect-from-channel stdin, <span class="Constant">10/newline</span>, screen
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, <span class="Constant">0/quit</span>, error?
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, <span class="Constant">0/quit</span>
   <span class="muControl">return</span> result, quit?, error?
 ]