diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 20:33:39 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 20:33:39 -0700 |
commit | dfd2ed38f24b82da102d7fd899fa58bb0a791023 (patch) | |
tree | 37f72197f8239e6bb79ad2fed9ae3e606b875fd9 /066stream.mu | |
parent | a2d8c7132258efeb6da2716267786a931f95b47b (diff) | |
download | mu-dfd2ed38f24b82da102d7fd899fa58bb0a791023.tar.gz |
1773 - update all mu recipes to new-default-space
Turns out to not affect memory utilization or run-time. At all. But still looks nicer and requires less fudging on our part.
Diffstat (limited to '066stream.mu')
-rw-r--r-- | 066stream.mu | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/066stream.mu b/066stream.mu index ab86efab..d07d99e9 100644 --- a/066stream.mu +++ b/066stream.mu @@ -5,7 +5,7 @@ container stream [ ] recipe new-stream [ - default-space:address:array:location <- new location:type, 30:literal + new-default-space result:address:stream <- new stream:type i:address:number <- get-address result:address:stream/deref, index:offset i:address:number/deref <- copy 0:literal @@ -15,7 +15,7 @@ recipe new-stream [ ] recipe rewind-stream [ - default-space:address:array:location <- new location:type, 30:literal + new-default-space in:address:stream <- next-ingredient x:address:number <- get-address in:address:stream/deref, index:offset x:address:number/deref <- copy 0:literal @@ -23,7 +23,7 @@ recipe rewind-stream [ ] recipe read-line [ - default-space:address:array:location <- new location:type, 30:literal + new-default-space in:address:stream <- next-ingredient idx:address:number <- get-address in:address:stream/deref, index:offset s:address:array:character <- get in:address:stream/deref, data:offset @@ -34,7 +34,7 @@ recipe read-line [ ] recipe end-of-stream? [ - default-space:address:array:location <- new location:type, 30:literal + new-default-space in:address:stream <- next-ingredient idx:number <- get in:address:stream/deref, index:offset s:address:array:character <- get in:address:stream/deref, data:offset |