about summary refs log tree commit diff stats
path: root/mu.arc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2014-12-28 13:03:50 -0800
committerKartik K. Agaram <vc@akkartik.com>2014-12-28 13:03:50 -0800
commit3513e03850d2eaa6a6f6f62dcac16a852364ea3b (patch)
treede8bdb7d8d629bb536614a4248638ee91a42f283 /mu.arc
parent82d0a1f2c1c9c7d60851901d669c1675f4eae451 (diff)
downloadmu-3513e03850d2eaa6a6f6f62dcac16a852364ea3b.tar.gz
453
Diffstat (limited to 'mu.arc')
-rw-r--r--mu.arc14
1 files changed, 7 insertions, 7 deletions
diff --git a/mu.arc b/mu.arc
index 47f2074d..08895bbe 100644
--- a/mu.arc
+++ b/mu.arc
@@ -1189,7 +1189,7 @@
   (xvalue:location <- get x:tagged-value-address/deref 1:offset)
   (reply xvalue:location match?:boolean))
 
-(init-fn new-tagged-value
+(init-fn init-tagged-value
   (default-scope:scope-address <- new scope:literal 30:literal)
   ; assert sizeof:arg.0 == 1
   (xtype:type <- next-input)
@@ -1218,11 +1218,11 @@
   (result:tagged-value-address <- get-address base:list-address/deref car:offset)
   (reply result:tagged-value-address))
 
-(init-fn new-list
+(init-fn init-list
   (default-scope:scope-address <- new scope:literal 30:literal)
   ; new-list = curr = new list
-  (new-list-result:list-address <- new list:literal)
-  (curr:list-address <- copy new-list-result:list-address)
+  (result:list-address <- new list:literal)
+  (curr:list-address <- copy result:list-address)
   { begin
     ; while read curr-value
     (curr-value:integer exists?:boolean <- next-input)
@@ -1238,10 +1238,10 @@
     (loop)
   }
   ; return new-list.cdr
-  (new-list-result:list-address <- list-next new-list-result:list-address)  ; memory leak
-  (reply new-list-result:list-address))
+  (result:list-address <- list-next result:list-address)  ; memory leak
+  (reply result:list-address))
 
-(init-fn new-channel
+(init-fn init-channel
   (default-scope:scope-address <- new scope:literal 30:literal)
   ; result = new channel
   (result:channel-address <- new channel:literal)