From cdf2822743b3beeb37ebc3deea8e08b6130698c5 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 12 May 2018 10:22:26 -0700 Subject: 4242 - get rid of refcounts entirely We're going to lean back into the experiment of commit 4179 back in Jan. If we delete memory it's up to us to ensure no pointers into it survive. Since deep-copy depends on our refcounting infrastructure, it's gone as well. So we're going to have to start watching out for pointers shared over channels. --- html/081print.mu.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/081print.mu.html') diff --git a/html/081print.mu.html b/html/081print.mu.html index e33a35a2..889eab31 100644 --- a/html/081print.mu.html +++ b/html/081print.mu.html @@ -181,7 +181,7 @@ if ('onhashchange' in window) { 119 # (handle special cases exactly like in the real screen) 120 width:num <- get *screen, num-columns:offset 121 height:num <- get *screen, num-rows:offset -122 capacity:num <- multiply width, height +122 capacity:num <- multiply width, height 123 row:num <- get *screen, cursor-row:offset 124 column:num <- get *screen, cursor-column:offset 125 buf:&:@:screen-cell <- get *screen, data:offset @@ -305,8 +305,8 @@ if ('onhashchange' in window) { 243 loop 244 } 245 # top-idx now same as next-top-idx; wrap around if necessary -246 capacity:num <- multiply width, height -247 _, top-idx <- divide-with-remainder, top-idx, capacity +246 capacity:num <- multiply width, height +247 _, top-idx <- divide-with-remainder, top-idx, capacity 248 *screen <- put *screen, top-idx:offset, top-idx 249 ] 250 @@ -322,8 +322,8 @@ if ('onhashchange' in window) { 260 } 261 result <- multiply width, row 262 result <- add result, column, top-idx -263 capacity:num <- multiply width, height -264 _, result <- divide-with-remainder result, capacity +263 capacity:num <- multiply width, height +264 _, result <- divide-with-remainder result, capacity 265 ] 266 267 scenario print-character-at-top-left [ -- cgit 1.4.1-2-gfad0