From 2c678a4e1d7f97c862342ee19cf2d6ee6e901d85 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 29 May 2017 14:21:32 -0700 Subject: 3897 - various updates to documentation --- html/074deep_copy.cc.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html/074deep_copy.cc.html') diff --git a/html/074deep_copy.cc.html b/html/074deep_copy.cc.html index 3afe2120..1c9770b4 100644 --- a/html/074deep_copy.cc.html +++ b/html/074deep_copy.cc.html @@ -255,14 +255,14 @@ if ('onhashchange' in window) { 191 :(before "End Primitive Recipe Declarations") 192 DEEP_COPY, 193 :(before "End Primitive Recipe Numbers") -194 put(Recipe_ordinal, "deep-copy", DEEP_COPY); +194 put(Recipe_ordinal, "deep-copy", DEEP_COPY); 195 :(before "End Primitive Recipe Checks") 196 case DEEP_COPY: { -197 if (SIZE(inst.ingredients) != 1) { +197 if (SIZE(inst.ingredients) != 1) { 198 ¦ raise << maybe(get(Recipe, r).name) << "'deep-copy' takes exactly one ingredient rather than '" << to_original_string(inst) << "'\n" << end(); 199 ¦ break; 200 } -201 if (SIZE(inst.products) != 1) { +201 if (SIZE(inst.products) != 1) { 202 ¦ raise << maybe(get(Recipe, r).name) << "'deep-copy' takes exactly one ingredient rather than '" << to_original_string(inst) << "'\n" << end(); 203 ¦ break; 204 } @@ -315,7 +315,7 @@ if ('onhashchange' in window) { 251 } 252 int out = allocate(payload_size(canonized_in)); 253 trace(9991, "run") << "deep-copy: new address is " << out << end(); -254 put(addresses_copied, in_address, out); +254 put(addresses_copied, in_address, out); 255 reagent/*copy*/ payload = canonized_in; 256 payload.properties.push_back(pair<string, string_tree*>("lookup", NULL)); 257 trace(9991, "run") << "recursing on payload " << payload.value << ' ' << to_string(payload) << end(); @@ -324,7 +324,7 @@ if ('onhashchange' in window) { 260 // HACK: write_memory interface isn't ideal for this situation; we need 261 // a temporary location to help copy the payload. 262 trace(9991, "run") << "deep-copy: writing temporary " << tmp.value << ": " << out << end(); -263 put(Memory, tmp.value, out); +263 put(Memory, tmp.value, out); 264 payload.set_value(tmp.value); // now modified for output 265 vector<double> old_data = read_memory(payload); 266 trace(9991, "run") << "deep-copy: really writing to " << payload.value << ' ' << to_string(payload) << " (old value " << to_string(old_data) << " new value " << to_string(data) << ")" << end(); @@ -438,8 +438,8 @@ if ('onhashchange' in window) { 374 def main [ 375 local-scope 376 x:&:foo <- new foo:type -377 *x <- put *x, p:offset, 34 -378 *x <- put *x, q:offset, x # create a cycle +377 *x <- put *x, p:offset, 34 +378 *x <- put *x, q:offset, x # create a cycle 379 y:&:foo <- deep-copy x 380 1:num/raw <- get *y, p:offset 381 y2:&:foo <- get *y, q:offset -- cgit 1.4.1-2-gfad0