From 65361948ca7975553757a0e0df4ac7352413044c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 14 May 2015 16:04:45 -0700 Subject: 1376 - update github docs --- html/012transform.cc.html | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'html/012transform.cc.html') diff --git a/html/012transform.cc.html b/html/012transform.cc.html index b974b8ab..f7d79fe0 100644 --- a/html/012transform.cc.html +++ b/html/012transform.cc.html @@ -2,7 +2,7 @@ -Mu - 012transform.cc +~/Desktop/s/mu/012transform.cc @@ -13,7 +13,6 @@ pre { white-space: pre-wrap; font-family: monospace; color: #d0d0d0; background-color: #000000; } body { font-family: monospace; color: #d0d0d0; background-color: #000000; } * { font-size: 1em; } -.cSpecial { color: #008000; } .Identifier { color: #008080; } .Constant { color: #008080; } .Comment { color: #8080ff; } @@ -53,7 +52,7 @@ void transform_all() {->second; if (r.steps.empty()) continue; if (r.transformed_until != t-1) continue; - (*Transform[t])(/*recipe_number*/p->first); + (*Transform.at(t))(/*recipe_number*/p->first); r.transformed_until = t; } } @@ -66,12 +65,12 @@ void parse_int_reagents() ->second; if (r.steps.empty()) continue; for (index_t index = 0; index < r.steps.size(); ++index) { - instruction& inst = r.steps[index]; + instruction& inst = r.steps.at(index); for (index_t i = 0; i < inst.ingredients.size(); ++i) { - populate_value(inst.ingredients[i]); + populate_value(inst.ingredients.at(i)); } for (index_t i = 0; i < inst.products.size(); ++i) { - populate_value(inst.products[i]); + populate_value(inst.products.at(i)); } } } @@ -79,11 +78,8 @@ void parse_int_reagents() (reagent& r) { if (r.initialized) return; - char* end = NULL; - int result = strtol(r.name.c_str(), &end, /*any base*/0); - if (*end != '\0') return; -//? cout << "setting value\n"; //? 1 - r.set_value(result); + if (!is_number(r.name)) return; + r.set_value(to_number(r.name)); } -- cgit 1.4.1-2-gfad0