From f1b71a4461a2fca938897fc15de0214e48265c54 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 24 Apr 2015 20:41:37 -0700 Subject: 1177 --- cpp/035call | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/035call') diff --git a/cpp/035call b/cpp/035call index 3db1a10a..9aee3db8 100644 --- a/cpp/035call +++ b/cpp/035call @@ -33,9 +33,9 @@ recipe f [ // This requires maintaining a 'stack' of interrupted recipes or 'calls'. struct call { recipe_number running_recipe; - size_t pc; + size_t running_step_index; // End call Fields - call(recipe_number r) :running_recipe(r), pc(0) {} + call(recipe_number r) :running_recipe(r), running_step_index(0) {} }; typedef stack call_stack; @@ -55,7 +55,7 @@ struct routine { :(replace{} "inline size_t& current_step_index()") inline size_t& current_step_index() { - return Current_routine->calls.top().pc; + return Current_routine->calls.top().running_step_index; } :(replace{} "inline const string& current_recipe_name()") inline const string& current_recipe_name() { @@ -67,7 +67,7 @@ inline vector& steps() { } :(replace{} "inline const instruction& current_instruction()") inline const instruction& current_instruction() { - return Recipe[Current_routine->calls.top().running_recipe].steps[Current_routine->calls.top().pc]; + return Recipe[Current_routine->calls.top().running_recipe].steps[Current_routine->calls.top().running_step_index]; } :(replace{} "default:" following "End Primitive Recipe Implementations") -- cgit 1.4.1-2-gfad0