From 95f2fe96262fcc5977c4633828730acc588c99b3 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 6 Feb 2017 23:44:46 -0800 Subject: 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.. --- 011load.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '011load.cc') 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; } -- cgit 1.4.1-2-gfad0