diff options
Diffstat (limited to 'html')
-rw-r--r-- | html/043space.cc.html | 10 | ||||
-rw-r--r-- | html/062convert_ingredients_to_text.cc.html | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/html/043space.cc.html b/html/043space.cc.html index 60bc5518..2cdff102 100644 --- a/html/043space.cc.html +++ b/html/043space.cc.html @@ -299,7 +299,7 @@ if ('onhashchange' in window) { <span id="L235" class="LineNr">235 </span> <span class="Normal">const</span> recipe& exiting_recipe = get<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> r<span class="Delimiter">);</span> <span id="L236" class="LineNr">236 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>exiting_recipe<span class="Delimiter">.</span>steps<span class="Delimiter">.</span>empty<span class="Delimiter">())</span> <span class="Identifier">return</span><span class="Delimiter">;</span> <span id="L237" class="LineNr">237 </span> <span class="Normal">const</span> instruction& inst = exiting_recipe<span class="Delimiter">.</span>steps<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">);</span> -<span id="L238" class="LineNr">238 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>inst<span class="Delimiter">.</span>old_name != <span class="Constant">"local-scope"</span><span class="Delimiter">)</span> <span class="Identifier">return</span><span class="Delimiter">;</span> +<span id="L238" class="LineNr">238 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>inst<span class="Delimiter">.</span>name_before_rewrite != <span class="Constant">"local-scope"</span><span class="Delimiter">)</span> <span class="Identifier">return</span><span class="Delimiter">;</span> <span id="L239" class="LineNr">239 </span> <span class="Comment">// reclaim any local variables unless they're being returned</span> <span id="L240" class="LineNr">240 </span> vector<<span class="Normal">double</span>> zeros<span class="Delimiter">;</span> <span id="L241" class="LineNr">241 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Comment">/*</span><span class="Comment">leave default space for last</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> i < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>exiting_recipe<span class="Delimiter">.</span>steps<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span> @@ -325,11 +325,11 @@ if ('onhashchange' in window) { <span id="L261" class="LineNr">261 </span><span class="Comment">//: Reclaiming local variables above requires remembering what name an</span> <span id="L262" class="LineNr">262 </span><span class="Comment">//: instruction had before any rewrites or transforms.</span> <span id="L263" class="LineNr">263 </span><span class="Delimiter">:(before "End <a href='010vm.cc.html#L32'>instruction</a> Fields")</span> -<span id="L264" class="LineNr">264 </span>string old_name<span class="Delimiter">;</span> +<span id="L264" class="LineNr">264 </span>string name_before_rewrite<span class="Delimiter">;</span> <span id="L265" class="LineNr">265 </span><span class="Delimiter">:(before "End <a href='010vm.cc.html#L32'>instruction</a> Clear")</span> -<span id="L266" class="LineNr">266 </span>old_name<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span> +<span id="L266" class="LineNr">266 </span>name_before_rewrite<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span> <span id="L267" class="LineNr">267 </span><span class="Delimiter">:(before "End next_instruction(curr)")</span> -<span id="L268" class="LineNr">268 </span>curr<span class="Delimiter">-></span>old_name = curr<span class="Delimiter">-></span>name<span class="Delimiter">;</span> <span class="Comment">// before rewrite rules modify it</span> +<span id="L268" class="LineNr">268 </span>curr<span class="Delimiter">-></span>name_before_rewrite = curr<span class="Delimiter">-></span>name<span class="Delimiter">;</span> <span id="L269" class="LineNr">269 </span> <span id="L270" class="LineNr">270 </span><span class="Delimiter">:(code)</span> <span id="L271" class="LineNr">271 </span><span class="Comment">// is this reagent one of the values returned by the current (return) instruction?</span> @@ -362,7 +362,7 @@ if ('onhashchange' in window) { <span id="L298" class="LineNr">298 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>!contains_key<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> inst<span class="Delimiter">.</span>operation<span class="Delimiter">))</span> <span class="Identifier">return</span> <span class="Constant">true</span><span class="Delimiter">;</span> <span id="L299" class="LineNr">299 </span> <span class="Normal">const</span> recipe& callee = get<span class="Delimiter">(</span>Recipe<span class="Delimiter">,</span> inst<span class="Delimiter">.</span>operation<span class="Delimiter">);</span> <span id="L300" class="LineNr">300 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>callee<span class="Delimiter">.</span>steps<span class="Delimiter">.</span>empty<span class="Delimiter">())</span> <span class="Identifier">return</span> <span class="Constant">true</span><span class="Delimiter">;</span> -<span id="L301" class="LineNr">301 </span> <span class="Identifier">return</span> callee<span class="Delimiter">.</span>steps<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>old_name != <span class="Constant">"local-scope"</span><span class="Delimiter">;</span> <span class="Comment">// callees that call local-scope are already dealt with before return</span> +<span id="L301" class="LineNr">301 </span> <span class="Identifier">return</span> callee<span class="Delimiter">.</span>steps<span class="Delimiter">.</span>at<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">).</span>name_before_rewrite != <span class="Constant">"local-scope"</span><span class="Delimiter">;</span> <span class="Comment">// callees that call local-scope are already dealt with before return</span> <span id="L302" class="LineNr">302 </span><span class="Delimiter">}</span> <span id="L303" class="LineNr">303 </span> <span id="L304" class="LineNr">304 </span><span class="Normal">bool</span> <a href='043space.cc.html#L304'>caller_uses_product</a><span class="Delimiter">(</span><span class="Normal">int</span> product_index<span class="Delimiter">)</span> <span class="Delimiter">{</span> diff --git a/html/062convert_ingredients_to_text.cc.html b/html/062convert_ingredients_to_text.cc.html index 9eae6173..c97557e4 100644 --- a/html/062convert_ingredients_to_text.cc.html +++ b/html/062convert_ingredients_to_text.cc.html @@ -147,7 +147,7 @@ if ('onhashchange' in window) { <span id="L86" class="LineNr"> 86 </span> convert_ingredient_to_text<span class="Delimiter">(</span>inst<span class="Delimiter">.</span>ingredients<span class="Delimiter">.</span>at<span class="Delimiter">(</span>j<span class="Delimiter">),</span> new_instructions<span class="Delimiter">,</span> ingredient_name<span class="Delimiter">.</span>str<span class="Delimiter">());</span> <span id="L87" class="LineNr"> 87 </span> <span class="Delimiter">}</span> <span id="L88" class="LineNr"> 88 </span> <span class="Delimiter">}</span> -<span id="L89" class="LineNr"> 89 </span> <span class="Normal">else</span> <span class="Normal">if</span> <span class="Delimiter">(</span>inst<span class="Delimiter">.</span>old_name == <span class="Constant">"append"</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L89" class="LineNr"> 89 </span> <span class="Normal">else</span> <span class="Normal">if</span> <span class="Delimiter">(</span>inst<span class="Delimiter">.</span>name_before_rewrite == <span class="Constant">"append"</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L90" class="LineNr"> 90 </span> <span class="Comment">// override only variants that try to append to a string</span> <span id="L91" class="LineNr"> 91 </span> <span class="Comment">// Beware: this hack restricts how much 'append' can be overridden. Any</span> <span id="L92" class="LineNr"> 92 </span> <span class="Comment">// new variants that match:</span> |