From 4a48bedcd1d708a43d43dc6259a4e45c52ea3d00 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 3 Dec 2017 23:25:40 -0800 Subject: 4134 - 'input' = 'ingredient' --- html/088file.mu.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'html/088file.mu.html') diff --git a/html/088file.mu.html b/html/088file.mu.html index 88c45143..f4b0be86 100644 --- a/html/088file.mu.html +++ b/html/088file.mu.html @@ -81,7 +81,7 @@ if ('onhashchange' in window) { 20 21 def start-reading resources:&:resources, filename:text -> contents:&:source:char, error?:bool [ 22 local-scope - 23 load-ingredients + 23 load-inputs 24 error? <- copy 0/false 25 { 26 ¦ break-unless resources @@ -98,7 +98,7 @@ if ('onhashchange' in window) { 37 38 def slurp resources:&:resources, filename:text -> contents:text, error?:bool [ 39 local-scope - 40 load-ingredients + 40 load-inputs 41 source:&:source:char, error?:bool <- start-reading resources, filename 42 return-if error?, 0/contents 43 buf:&:buffer:char <- new-buffer 30/capacity @@ -113,7 +113,7 @@ if ('onhashchange' in window) { 52 53 def start-reading-from-fake-resource resources:&:resources, resource:text -> contents:&:source:char, error?:bool [ 54 local-scope - 55 load-ingredients + 55 load-inputs 56 error? <- copy 0/no-error 57 i:num <- copy 0 58 data:&:@:resource <- get *resources, data:offset @@ -136,7 +136,7 @@ if ('onhashchange' in window) { 75 76 def receive-from-file file:num, sink:&:sink:char -> sink:&:sink:char [ 77 local-scope - 78 load-ingredients + 78 load-inputs 79 { 80 ¦ c:char, eof?:bool <- $read-from-file file 81 ¦ break-if eof? @@ -149,7 +149,7 @@ if ('onhashchange' in window) { 88 89 def receive-from-text contents:text, sink:&:sink:char -> sink:&:sink:char [ 90 local-scope - 91 load-ingredients + 91 load-inputs 92 i:num <- copy 0 93 len:num <- length *contents 94 { @@ -165,7 +165,7 @@ if ('onhashchange' in window) { 104 105 def start-writing resources:&:resources, filename:text -> sink:&:sink:char, routine-id:num, error?:bool [ 106 local-scope -107 load-ingredients +107 load-inputs 108 error? <- copy 0/false 109 source:&:source:char, sink:&:sink:char <- new-channel 30 110 { @@ -187,7 +187,7 @@ if ('onhashchange' in window) { 126 127 def dump resources:&:resources, filename:text, contents:text -> resources:&:resources, error?:bool [ 128 local-scope -129 load-ingredients +129 load-inputs 130 # todo: really create an empty file 131 return-unless contents, resources, 0/no-error 132 sink-file:&:sink:char, write-routine:num, error?:bool <- start-writing resources, filename @@ -210,7 +210,7 @@ if ('onhashchange' in window) { 149 150 def transmit-to-file file:num, source:&:source:char -> source:&:source:char [ 151 local-scope -152 load-ingredients +152 load-inputs 153 { 154 ¦ c:char, done?:bool, source <- read source 155 ¦ break-if done? @@ -222,7 +222,7 @@ if ('onhashchange' in window) { 161 162 def transmit-to-fake-resource resources:&:resources, filename:text, source:&:source:char -> resources:&:resources, source:&:source:char [ 163 local-scope -164 load-ingredients +164 load-inputs 165 lock:location <- get-location *resources, lock:offset 166 wait-for-reset-then-set lock 167 # compute new file contents -- cgit 1.4.1-2-gfad0