about summary refs log tree commit diff stats
path: root/018type_abbreviations.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 /018type_abbreviations.cc
parent5a820205054a9c45a9b4dc71aa1f26b4612ec76d (diff)
downloadmu-6c96a437cef5140197660a0903309f11c364bf78.tar.gz
3522
Diffstat (limited to '018type_abbreviations.cc')
-rw-r--r--018type_abbreviations.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/018type_abbreviations.cc b/018type_abbreviations.cc
index 1f33a5a6..1e487633 100644
--- a/018type_abbreviations.cc
+++ b/018type_abbreviations.cc
@@ -107,7 +107,7 @@ restore_type_abbreviations();
 atexit(clear_type_abbreviations);
 :(code)
 void restore_type_abbreviations() {
-  for (map<string, type_tree*>::iterator p = Type_abbreviations.begin(); p != Type_abbreviations.end(); ++p) {
+  for (map<string, type_tree*>::iterator p = Type_abbreviations.begin();  p != Type_abbreviations.end();  ++p) {
     if (!contains_key(Type_abbreviations_snapshot, p->first))
       delete p->second;
   }
@@ -115,7 +115,7 @@ void restore_type_abbreviations() {
   Type_abbreviations = Type_abbreviations_snapshot;
 }
 void clear_type_abbreviations() {
-  for (map<string, type_tree*>::iterator p = Type_abbreviations.begin(); p != Type_abbreviations.end(); ++p)
+  for (map<string, type_tree*>::iterator p = Type_abbreviations.begin();  p != Type_abbreviations.end();  ++p)
     delete p->second;
   Type_abbreviations.clear();
 }
@@ -169,14 +169,14 @@ void expand_type_abbreviations(const recipe_ordinal r) {
 
 void expand_type_abbreviations(const recipe& caller) {
   trace(9991, "transform") << "--- expand type abbreviations in recipe '" << caller.name << "'" << end();
-  for (int i = 0; i < SIZE(caller.steps); ++i) {
+  for (int i = 0;  i < SIZE(caller.steps);  ++i) {
     const instruction& inst = caller.steps.at(i);
     trace(9991, "transform") << "instruction '" << inst.original_string << end();
-    for (long int i = 0; i < SIZE(inst.ingredients); ++i) {
+    for (long int i = 0;  i < SIZE(inst.ingredients);  ++i) {
       expand_type_abbreviations(inst.ingredients.at(i).type);
       trace(9992, "transform") << "ingredient type after expanding abbreviations: " << names_to_string(inst.ingredients.at(i).type) << end();
     }
-    for (long int i = 0; i < SIZE(inst.products); ++i) {
+    for (long int i = 0;  i < SIZE(inst.products);  ++i) {
       expand_type_abbreviations(inst.products.at(i).type);
       trace(9992, "transform") << "product type after expanding abbreviations: " << names_to_string(inst.products.at(i).type) << end();
     }