about summary refs log tree commit diff stats
path: root/011load.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-10-19 22:10:35 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-10-19 22:10:35 -0700
commit6c96a437cef5140197660a0903309f11c364bf78 (patch)
treeea3b5a4d90100329eeb58a76773a500a6bee71da /011load.cc
parent5a820205054a9c45a9b4dc71aa1f26b4612ec76d (diff)
downloadmu-6c96a437cef5140197660a0903309f11c364bf78.tar.gz
3522
Diffstat (limited to '011load.cc')
-rw-r--r--011load.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/011load.cc b/011load.cc
index ab8973e4..9dc54922 100644
--- a/011load.cc
+++ b/011load.cc
@@ -121,7 +121,7 @@ bool next_instruction(istream& in, instruction* curr) {
 
   vector<string>::iterator p = words.begin();
   if (find(words.begin(), words.end(), "<-") != words.end()) {
-    for (; *p != "<-"; ++p)
+    for (;  *p != "<-";  ++p)
       curr->products.push_back(reagent(*p));
     ++p;  // skip <-
   }
@@ -133,14 +133,14 @@ bool next_instruction(istream& in, instruction* curr) {
   curr->old_name = curr->name = *p;  ++p;
   // curr->operation will be set in a later layer
 
-  for (; p != words.end(); ++p)
+  for (;  p != words.end();  ++p)
     curr->ingredients.push_back(reagent(*p));
 
   trace(9993, "parse") << "instruction: " << curr->name << end();
   trace(9993, "parse") << "  number of ingredients: " << SIZE(curr->ingredients) << end();
-  for (vector<reagent>::iterator p = curr->ingredients.begin(); p != curr->ingredients.end(); ++p)
+  for (vector<reagent>::iterator p = curr->ingredients.begin();  p != curr->ingredients.end();  ++p)
     trace(9993, "parse") << "  ingredient: " << to_string(*p) << end();
-  for (vector<reagent>::iterator p = curr->products.begin(); p != curr->products.end(); ++p)
+  for (vector<reagent>::iterator p = curr->products.begin();  p != curr->products.end();  ++p)
     trace(9993, "parse") << "  product: " << to_string(*p) << end();
   if (!has_data(in)) {
     raise << "9: unbalanced '[' for recipe\n" << end();