about summary refs log tree commit diff stats
path: root/011load.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2017-02-06 23:44:46 -0800
committerKartik K. Agaram <vc@akkartik.com>2017-02-06 23:44:46 -0800
commit95f2fe96262fcc5977c4633828730acc588c99b3 (patch)
tree080c35bc0d25bbf8df1e8f5d5d04c2bf1b8688f7 /011load.cc
parent6078ecf1f67c0ff0089d58c8b9c11ec8230e9238 (diff)
downloadmu-95f2fe96262fcc5977c4633828730acc588c99b3.tar.gz
3742 - move instruction.old_name to a later layer
The drawback of this is that we forget to initialize old_name when we
create instructions out of whole cloth in a few places. But this problem
already existed..
Diffstat (limited to '011load.cc')
-rw-r--r--011load.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/011load.cc b/011load.cc
index 0a473394..926a02ad 100644
--- a/011load.cc
+++ b/011load.cc
@@ -143,7 +143,7 @@ bool next_instruction(istream& in, instruction* curr) {
     raise << "instruction prematurely ended with '<-'\n" << end();
     return false;
   }
-  curr->old_name = curr->name = *p;  ++p;
+  curr->name = *p;  ++p;
   // curr->operation will be set at transform time
 
   for (;  p != words.end();  ++p)
@@ -159,6 +159,7 @@ bool next_instruction(istream& in, instruction* curr) {
     raise << "9: unbalanced '[' for recipe\n" << end();
     return false;
   }
+  // End next_instruction(curr)
   return true;
 }