From dcc060c7d4ef56b978beb34ddce8d8ffcec94fa6 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 25 Feb 2016 17:17:20 -0800 Subject: 2706 - update html --- html/052tangle.cc.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/052tangle.cc.html') diff --git a/html/052tangle.cc.html b/html/052tangle.cc.html index 00bbfb45..dc26e9ea 100644 --- a/html/052tangle.cc.html +++ b/html/052tangle.cc.html @@ -118,13 +118,13 @@ void insert_fragments(const recipe_ordinal r.insert(inst.label); ostringstream prefix; prefix << '+' << get(Recipe, r).name << '_' << pass << '_' << i; - if (contains_key(Before_fragments, inst.label)) { + // ok to use contains_key even though Before_fragments uses [], + // because appending an empty recipe is a noop + if (contains_key(Before_fragments, inst.label)) append_fragment(result, Before_fragments[inst.label].steps, prefix.str()); - } result.push_back(inst); - if (contains_key(After_fragments, inst.label)) { + if (contains_key(After_fragments, inst.label)) append_fragment(result, After_fragments[inst.label].steps, prefix.str()); - } } get(Recipe, r).steps.swap(result); ++pass; @@ -155,7 +155,7 @@ void append_fragment(vector<instruction>&am for (long long int j = 0; j < SIZE(inst.ingredients); ++j) { reagent& x = inst.ingredients.at(j); if (!is_literal(x)) continue; - if (x.properties.at(0).second->value == "label" && contains_key(jump_targets, x.name)) + if (x.type->name == "label" && contains_key(jump_targets, x.name)) x.name = prefix+x.name; } base.push_back(inst); -- cgit 1.4.1-2-gfad0