From 598f1b5362eb799e40836ceeb5452c9ba937fd6c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 7 Feb 2017 00:22:08 -0800 Subject: 3746 --- html/041jump_target.cc.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/041jump_target.cc.html') diff --git a/html/041jump_target.cc.html b/html/041jump_target.cc.html index aa5ce74d..af84acf4 100644 --- a/html/041jump_target.cc.html +++ b/html/041jump_target.cc.html @@ -73,7 +73,7 @@ if ('onhashchange' in window) { 11 bool is_jump_target(const string& label) { 12 if (label == "{" || label == "}") return false; 13 // End is_jump_target Special-cases - 14 return is_label_word(label); + 14 return is_label_word(label); 15 } 16 17 :(scenario jump_to_label) @@ -138,22 +138,22 @@ if ('onhashchange' in window) { 76 void replace_offset(reagent& x, /*const*/ map<string, int>& offset, const int current_offset, const recipe_ordinal r) { 77 if (!is_literal(x)) { 78 raise << maybe(get(Recipe, r).name) << "jump target must be offset or label but is '" << x.original_string << "'\n" << end(); - 79 x.set_value(0); // no jump by default + 79 x.set_value(0); // no jump by default 80 return; 81 } 82 if (x.initialized) return; 83 if (is_integer(x.name)) return; // non-labels will be handled like other number operands 84 if (!is_jump_target(x.name)) { 85 raise << maybe(get(Recipe, r).name) << "can't jump to label '" << x.name << "'\n" << end(); - 86 x.set_value(0); // no jump by default + 86 x.set_value(0); // no jump by default 87 return; 88 } 89 if (!contains_key(offset, x.name)) { 90 raise << maybe(get(Recipe, r).name) << "can't find label '" << x.name << "'\n" << end(); - 91 x.set_value(0); // no jump by default + 91 x.set_value(0); // no jump by default 92 return; 93 } - 94 x.set_value(get(offset, x.name) - current_offset); + 94 x.set_value(get(offset, x.name) - current_offset); 95 } 96 97 :(scenario break_to_label) -- cgit 1.4.1-2-gfad0